王新凯 3 gadi atpakaļ
vecāks
revīzija
87b401215e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();