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

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

@@ -143,6 +143,11 @@ class User extends Api @@ -143,6 +143,11 @@ class User extends Api
143 $mobile = $getUserInfo['purePhoneNumber']; 143 $mobile = $getUserInfo['purePhoneNumber'];
144 144
145 if(isset($mobile)){ 145 if(isset($mobile)){
  146 +
  147 + $user = new \app\admin\model\User;
  148 + $user = $user->where(['mobile'=>$mobile,'openid'=>''])->select();
  149 + $this->success('Logged in successful', ['mobile'=>$mobile,'openid'=>'']);exit;
  150 +
146 $user = new \app\admin\model\User; 151 $user = new \app\admin\model\User;
147 $user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']); 152 $user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']);
148 } 153 }