...
|
...
|
@@ -185,8 +185,6 @@ class User extends Api |
|
|
$miniProgram = $app->mini_program;
|
|
|
$sessionKey = $miniProgram->sns->getSessionKey($params['code']);
|
|
|
$Json = $miniProgram->encryptor->decryptData($sessionKey['session_key'], urldecode($params['iv']), urldecode($params['encryptData']));
|
|
|
dump($Json);
|
|
|
die;
|
|
|
$Mobile = $Json['phoneNumber'];
|
|
|
$Res = Db::name('user')->where('id', $UserId)->update(['mobile' => $Mobile, 'updatetime' => time()]);
|
|
|
if ($Res) $this->success('绑定成功', 1);
|
...
|
...
|
|