songxingwei 3 anos atrás
pai
commit
a37524a18f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      application/common/model/User.php

+ 2 - 2
application/common/model/User.php

@@ -39,8 +39,8 @@ class User Extends Model
      * 微信授权登录、注册
      */
     public static function wechatLogin($code,$rawData){
-        $appid = Config::get_values('wechat_appid');
-        $secret = Config::get_values('wechat_appsecret');
+        $appid = Config::get_values('small_wechat_id');
+        $secret = Config::get_values('small_wechat_secret');
         $url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appid . "&secret=" . $secret . "&js_code=" . $code . "&grant_type=authorization_code";
         $session_key = Common::curlRequest($url);