作者 王智

修改

@@ -184,7 +184,7 @@ class User extends Api @@ -184,7 +184,7 @@ class User extends Api
184 $app = new Application($options); 184 $app = new Application($options);
185 $miniProgram = $app->mini_program; 185 $miniProgram = $app->mini_program;
186 $sessionKey = $miniProgram->sns->getSessionKey($params['code']); 186 $sessionKey = $miniProgram->sns->getSessionKey($params['code']);
187 - $Json = $miniProgram->encryptor->decryptData($sessionKey['session_key'], urldecode($params['iv']), urldecode($params['encryptData'])); 187 + $Json = $miniProgram->encryptor->decryptData($sessionKey['session_key'], $params['iv'], $params['encryptData']);
188 dump($Json); 188 dump($Json);
189 die; 189 die;
190 $Mobile = $Json['phoneNumber']; 190 $Mobile = $Json['phoneNumber'];