...
|
...
|
@@ -30,11 +30,9 @@ class Login extends Base |
|
|
$encryptedData = $post['encryptedData'];//I('post.encryptedData');
|
|
|
$iv = $post['iv'];//I('post.iv');
|
|
|
$url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appid . "&secret=" . $AppSecret . "&js_code=" . $code . "&grant_type=authorization_code";
|
|
|
print_r($url);return;
|
|
|
file_put_contents("1.txt","8-1. ".($code)."\r\n",FILE_APPEND);
|
|
|
$result = http_request($url);
|
|
|
$res = json_decode($result, true);
|
|
|
print_r($res);return;
|
|
|
if (!$res) {
|
|
|
$this->error("授权失败,请尝试重新授权");
|
|
|
//$res = json_decode(send_post($url), true);
|
...
|
...
|
|