|
@@ -139,7 +139,7 @@ function get_access_token(){
|
|
|
* 发放模板消息
|
|
|
*/
|
|
|
function send_message($access_token,$openid,$jump_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/template/send?access_token='.$access_token;
|
|
|
$data=[
|
|
|
'touser'=>$openid,
|
|
|
'mp_template_msg'=>[
|
|
@@ -213,7 +213,6 @@ function http_curl($url,$type='get',$res='json',$arr=''){
|
|
|
//3.采集
|
|
|
$output = curl_exec($ch);
|
|
|
//4.关闭
|
|
|
- var_dump($output);
|
|
|
curl_close($ch);
|
|
|
if($res=='json'){
|
|
|
if($output === false){
|