...
|
...
|
@@ -25,7 +25,6 @@ class Login extends Base |
|
|
{
|
|
|
$appid = "wx58ceff4e93cfc523";
|
|
|
$AppSecret = "baf744d21875280a5e98611f66adaf91";
|
|
|
|
|
|
$post = $this->request->post();
|
|
|
$code = $post['code'];// I('post.code');
|
|
|
$encryptedData = $post['encryptedData'];//I('post.encryptedData');
|
...
|
...
|
@@ -36,7 +35,7 @@ class Login extends Base |
|
|
$result = http_request($url);
|
|
|
//file_put_contents("111111111111222.txt","3-1. ".($result)."\r\n",FILE_APPEND);
|
|
|
$res = json_decode($result, true);
|
|
|
|
|
|
print_r($res);return;
|
|
|
if (!$res) {
|
|
|
$this->error("授权失败,请尝试重新授权");
|
|
|
//$res = json_decode(send_post($url), true);
|
...
|
...
|
|