作者 王智

修复生成订单号 失败

... ... @@ -185,6 +185,8 @@ 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);
... ...