王新凯 3 年之前
父节点
当前提交
87b401215e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Login.php

+ 1 - 1
application/api/controller/Login.php

@@ -140,7 +140,7 @@ class Login extends Api
             $this->error('code参数错误');
         }
         $data=$app->auth->session($code);
-        $decryptedData = $app->encryptor->decryptData($decryptedData['session_key'], input('iv'), input('encryptedData'));
+        $decryptedData = $app->encryptor->decryptData($data['session_key'], input('iv'), input('encryptedData'));
 
         dump($decryptedData);die();
         $user=Db::table('q_user')->where('openid',$data['openid'])->find();