...
|
...
|
@@ -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'=>'']);
|
|
|
}
|
...
|
...
|
|