@@ -167,6 +167,7 @@ class User extends Api
$userInfo = Db::name('user')->where('openid',$res['openid'])->find();
+ $data['openid'] = $res['openid'];
if (!$userInfo) {
return json(['code' => 101,'msg'=>'请先注册','data'=>$data]);
} else {