diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 7ee0552fb..170c92791 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -139,12 +139,13 @@ class WechatsController < ActionController::Base end def sendBind(request) - news = (1..1).each_with_object([]) { |n, memo| memo << { title: '绑定登录', content: "您还未绑定确实的用户,请先绑定." } } + news = (1..1).each_with_object([]) { |n, memo| memo << { title: '绑定登录', content: "欢迎使用Trustie创新实践服务平台! 在这里您可以随时了解您的课程和项目动态,随时点赞和回复。 +我们将会与微信不断结合,为您提供更有价值的服务。 您还未绑定确实的用户,请先绑定,谢谢!" } } request.reply.news(news) do |article, n, index| # article is return object url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{Wechat.config.appid}&redirect_uri=#{login_wechat_url}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect" article.item title: "#{n[:title]}", description: n[:content], - pic_url: 'https://www.trustie.net/images/trustie_logo2.png', + pic_url: 'https://www.trustie.net/images/weixin_pic.jpg', url: url end end diff --git a/app/views/wechats/login.html.erb b/app/views/wechats/login.html.erb index 0e6fd8695..adde6d776 100644 --- a/app/views/wechats/login.html.erb +++ b/app/views/wechats/login.html.erb @@ -12,14 +12,14 @@
- +
- +
diff --git a/config/menu.yml b/config/menu.yml index 0c0e5c17d..de1952503 100644 --- a/config/menu.yml +++ b/config/menu.yml @@ -2,7 +2,7 @@ button: - type: "view" name: "最新动态" - url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8e1ab05163a28e37&redirect_uri=https://www.trustie.net/assets/wechat/app.html#/activities?response_type=code&scope=snsapi_base&state=123#wechat_redirect" + url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d&redirect_uri=https://test.course.trustie.net/assets/wechat/app.html#/activities?response_type=code&scope=snsapi_base&state=123#wechat_redirect" - type: "click" name: "意见反馈" @@ -13,8 +13,8 @@ button: - type: "view" name: "进入网站" - url: "https://www.trustie.net/" + url: "https://test.course.trustie.net/" - type: "view" name: "使用手册" - url: "https://www.trustie.net/organizations/1/downloads" \ No newline at end of file + url: "https://test.course.trustie.net/organizations/1/downloads" \ No newline at end of file diff --git a/config/wechat.yml b/config/wechat.yml index 53141df40..5b528487b 100644 --- a/config/wechat.yml +++ b/config/wechat.yml @@ -3,8 +3,8 @@ default: &default # corpsecret: "corpsecret" # agentid: 1 # Or if using public account, only need above two line - appid: "wx8e1ab05163a28e37" - secret: "beb4d3bc4b32b3557811680835357841" + appid: "wxc09454f171153c2d" + secret: "dff5b606e34dcafe24163ec82c2715f8" token: "123456" access_token: "1234567" encrypt_mode: false # if true must fill encoding_aes_key diff --git a/public/images/weixin_pic.jpg b/public/images/weixin_pic.jpg new file mode 100644 index 000000000..b9696dfa3 Binary files /dev/null and b/public/images/weixin_pic.jpg differ