diff --git a/app/Http/Controllers/Mobile/UserController.php b/app/Http/Controllers/Mobile/UserController.php index 90ac744..4f62797 100644 --- a/app/Http/Controllers/Mobile/UserController.php +++ b/app/Http/Controllers/Mobile/UserController.php @@ -39,7 +39,7 @@ class UserController extends CommonController } // 获取配置信息 $appid = \config('app.wechat_appid'); - $appSecret = \config('app.wechat_appsecret'); + $appSecret = \config('app.wechat_secret'); $url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appid . "&secret=" . $appSecret . "&js_code={$all['code']}&grant_type=authorization_code"; $userInfo = json_decode(file_get_contents($url), true); if (!isset($userInfo['openid'])) {