王新凯 3 năm trước cách đây
mục cha
commit
c6bcf267ec

+ 1 - 0
application/api/controller/Login.php

@@ -143,6 +143,7 @@ class Login extends Api
         }
         }
         $data=$app->auth->session($code);
         $data=$app->auth->session($code);
 
 
+        dump($data);die();
         $user=Db::table('q_user')->where('openid',$data['openid'])->find();
         $user=Db::table('q_user')->where('openid',$data['openid'])->find();
         if(empty($user)){
         if(empty($user)){
             $id=Db::table('q_user')->insertGetId(['openid'=>$data['openid'],'session_key'=>$data['session_key']]);
             $id=Db::table('q_user')->insertGetId(['openid'=>$data['openid'],'session_key'=>$data['session_key']]);