wupengfei 3 年之前
父節點
當前提交
d271240046
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      application/common.php

+ 1 - 2
application/common.php

@@ -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){