作者 郭文星

123

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