作者 xwp
1 个管道 的构建 通过 耗费 3 秒

导入功能添加创建订单逻辑

... ... @@ -143,6 +143,11 @@ class User extends Api
$mobile = $getUserInfo['purePhoneNumber'];
if(isset($mobile)){
$user = new \app\admin\model\User;
$user = $user->where(['mobile'=>$mobile,'openid'=>''])->select();
$this->success('Logged in successful', ['mobile'=>$mobile,'openid'=>'']);exit;
$user = new \app\admin\model\User;
$user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']);
}
... ...