|
@@ -119,8 +119,10 @@ class Login extends Api
|
|
|
$avatar=input('avatarUrl');
|
|
|
$nickname=input('nickname');
|
|
|
$user=Db::table('q_user')->where('openid',$user_id)->find();
|
|
|
+ dump(input('iv'));
|
|
|
+ dump('encryptedData');die();
|
|
|
$decryptedData = $app->encryptor->decryptData($user['session_key'], input('iv'), input('encryptedData'));
|
|
|
- dump($decryptedData);die();
|
|
|
+
|
|
|
$res=Db::table('q_user')->where('id',$user_id)->update(['headimg'=>$avatar,'nickname'=>$nickname,'phone'=>$decryptedData['phoneNumber']]);
|
|
|
if(empty($res)){
|
|
|
$this->success('授权信息失败,请重新授权');
|