|
@@ -369,7 +369,6 @@ class Common
|
|
$appsecret = Config::get_values('wechat_appsecret');
|
|
$appsecret = Config::get_values('wechat_appsecret');
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $appsecret;
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' . $appid . '&secret=' . $appsecret;
|
|
$res = json_decode(file_get_contents($url),true);
|
|
$res = json_decode(file_get_contents($url),true);
|
|
- print_r($res);die;
|
|
|
|
$access_token = $res['access_token'];
|
|
$access_token = $res['access_token'];
|
|
//请求url
|
|
//请求url
|
|
$url='https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token='.$access_token;
|
|
$url='https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token='.$access_token;
|