Commit f26e817962f5476b6ca8ff3925e75441b20c4478

Authored by lanrion
1 parent 2c6a7b23
Exists in master

修复授权auth_url bug

lib/qy_wechat_api.rb
... ... @@ -20,6 +20,7 @@ module QyWechatApi
20 20 autoload(:RedisStorage, "qy_wechat_api/storage/redis_storage")
21 21  
22 22 ENDPOINT_URL = "https://qyapi.weixin.qq.com/cgi-bin".freeze
  23 + SUITE_ENDPOINT = "https://qy.weixin.qq.com/cgi-bin".freeze
23 24 OK_MSG = "ok".freeze
24 25 OK_CODE = 0.freeze
25 26  
... ...
lib/qy_wechat_api/api/service/suite.rb
... ... @@ -63,7 +63,7 @@ module QyWechatApi
63 63 redirect_uri: uri,
64 64 state: state
65 65 }.to_query
66   - "#{QyWechatApi::ENDPOINT_URL}/loginpage?#{params}"
  66 + "#{QyWechatApi::SUITE_ENDPOINT}/loginpage?#{params}"
67 67 end
68 68  
69 69 private
... ...