From 0984c389aed6d58af5ab87c54d7b5361ef166575 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Sat, 9 Jul 2016 09:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/menu.yml.production | 32 ++++++++++++++++++++++++++++++++ config/menu.yml.test | 35 +++++++++++++++++++++++++++++++++++ config/wechat.yml | 17 +++++++++++++---- 3 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 config/menu.yml.production create mode 100644 config/menu.yml.test diff --git a/config/menu.yml.production b/config/menu.yml.production new file mode 100644 index 000000000..1128f9961 --- /dev/null +++ b/config/menu.yml.production @@ -0,0 +1,32 @@ +button: + - + type: "view" + name: "我的动态" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8e1ab05163a28e37&redirect_uri=http://www.trustie.net/wechat/user_activities&response_type=code&scope=snsapi_base&state=activities#wechat_redirect" + - + name: "我的课程" + sub_button: + - + type: "view" + name: "课程" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8e1ab05163a28e37&redirect_uri=http://www.trustie.net/wechat/user_activities&response_type=code&scope=snsapi_base&state=class_list#wechat_redirect" + - + type: "view" + name: "资源" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8e1ab05163a28e37&redirect_uri=http://www.trustie.net/wechat/user_activities&response_type=code&scope=snsapi_base&state=myresource#wechat_redirect" + + - + name: "更多" + sub_button: + - + type: "click" + name: "加入班级" + key: "JOIN_CLASS" + - + type: "click" + name: "反馈" + key: "FEEDBACK" + - + type: "view" + name: "历史推文" + url: "http://mp.weixin.qq.com/mp/getmasssendmsg?__biz=MzIwOTM2NDkxMA==#wechat_webview_type=1&wechat_redirect" diff --git a/config/menu.yml.test b/config/menu.yml.test new file mode 100644 index 000000000..a163bac61 --- /dev/null +++ b/config/menu.yml.test @@ -0,0 +1,35 @@ +button: + - + type: "view" + name: "我的动态" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d&redirect_uri=http://test.forge.trustie.net/wechat/user_activities&response_type=code&scope=snsapi_b +ase&state=activities#wechat_redirect" + - + name: "我的课程" + sub_button: + - + type: "view" + name: "课程" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d&redirect_uri=http://test.forge.trustie.net/wechat/user_activities&response_type=code&scope=snsapi +_base&state=class_list#wechat_redirect" + - + type: "view" + name: "资源" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d&redirect_uri=http://test.forge.trustie.net/wechat/user_activities&response_type=code&scope=snsapi +_base&state=myresource#wechat_redirect" + + - + name: "更多" + sub_button: + - + type: "click" + name: "加入班级" + key: "JOIN_CLASS" + - + type: "click" + name: "反馈" + key: "FEEDBACK" + - + type: "view" + name: "历史推文" + url: "http://mp.weixin.qq.com/mp/getmasssendmsg?__biz=MzIwOTM2NDkxMA==#wechat_webview_type=1&wechat_redirect" diff --git a/config/wechat.yml b/config/wechat.yml index 3d679c4ce..a46841a12 100644 --- a/config/wechat.yml +++ b/config/wechat.yml @@ -2,9 +2,18 @@ default: &default # corpid: "corpid" # corpsecret: "corpsecret" # agentid: 1 -# Or if using public account, only need above two line - appid: "wxc09454f171153c2d" - secret: "dff5b606e34dcafe24163ec82c2715f8" +#- # guange test + #appid: "wxf694495398c7d470" + #secret: "743e038392f1d89540e95f8f7645849a" + + #production + appid: "wx8e1ab05163a28e37" + secret: "beb4d3bc4b32b3557811680835357841" + + #test + #appid: "wxc09454f171153c2d" + #secret: "dff5b606e34dcafe24163ec82c2715f8" + token: "123456" access_token: "1234567" encrypt_mode: false # if true must fill encoding_aes_key @@ -24,4 +33,4 @@ development: <<: *default test: - <<: *default \ No newline at end of file + <<: *default