作者 郭文星

'123'

@@ -1301,7 +1301,6 @@ if (!function_exists('getAccessToken')) { @@ -1301,7 +1301,6 @@ if (!function_exists('getAccessToken')) {
1301 $secret = "643f1b6fdba08a773a7761a1a194a1ad"; 1301 $secret = "643f1b6fdba08a773a7761a1a194a1ad";
1302 $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appid . "&secret=" . $secret; 1302 $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appid . "&secret=" . $secret;
1303 $res = json_decode(file_get_contents($url), true); 1303 $res = json_decode(file_get_contents($url), true);
1304 - print_r($res);return $res;  
1305 1304
1306 $access_token = $res['access_token']; 1305 $access_token = $res['access_token'];
1307 if (!empty($access_token)) { 1306 if (!empty($access_token)) {