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

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

... ... @@ -141,13 +141,7 @@ class User extends Api
$mini = new \WeMini\Crypt($this->config);
$getUserInfo = $mini->decode($iv,$sessionKey,$encryptedData);
$mobile = $getUserInfo['purePhoneNumber'];
$this->success('user',$getUserInfo);exit;
if(isset($mobile)){
$user = new \app\admin\model\User;
$user = $user->where(['mobile'=>$mobile,'openid'=>''])->select();
$this->success('user', ['mobile'=>$mobile,'openid'=>'']);exit;
$user = new \app\admin\model\User;
$user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']);
}
... ...