...
|
...
|
@@ -39,7 +39,6 @@ class LoginController extends HomeBaseController{ |
|
|
//登录凭证校验接口
|
|
|
$loginUrl="https://api.weixin.qq.com/sns/jscode2session?appid=".$this->appId."&secret=".$this->appSecret."&js_code=".$code."&grant_type=authorization_code";
|
|
|
$loginData=json_decode(file_get_contents($loginUrl),true);
|
|
|
dump($loginData);
|
|
|
if(isset($loginData['openid'])){
|
|
|
$users = Db::name('users')->where('open_id', $loginData['openid'])->find();
|
|
|
if (empty($users)){
|
...
|
...
|
|