|
@@ -143,7 +143,7 @@ class Login extends Api
|
|
}
|
|
}
|
|
$data=$app->auth->session($code);
|
|
$data=$app->auth->session($code);
|
|
|
|
|
|
- dump($data);die();
|
|
|
|
|
|
+ // 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']]);
|