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