|
@@ -163,7 +163,6 @@ class User extends Api
|
|
$app=Factory::miniProgram($config);
|
|
$app=Factory::miniProgram($config);
|
|
$data = input('get.');
|
|
$data = input('get.');
|
|
$res=$app->auth->session($data['js_code']);
|
|
$res=$app->auth->session($data['js_code']);
|
|
- dump($res);die;
|
|
|
|
if (!isset($res['openid'])) return $this->error('请求失败');
|
|
if (!isset($res['openid'])) return $this->error('请求失败');
|
|
|
|
|
|
$userInfo = Db::name('user')->where('openid',$res['openid'])->find();
|
|
$userInfo = Db::name('user')->where('openid',$res['openid'])->find();
|