作者 郭文星

123

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