正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -136,7 +136,7 @@ class Index extends Api | @@ -136,7 +136,7 @@ class Index extends Api | ||
136 | function sendAstuWxMsgToAgent($info, $openid, $tourl, $appid, $secret, $ywt_appid, $pagepath) | 136 | function sendAstuWxMsgToAgent($info, $openid, $tourl, $appid, $secret, $ywt_appid, $pagepath) |
137 | { | 137 | { |
138 | $myurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appid . "&secret=" . $secret; | 138 | $myurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appid . "&secret=" . $secret; |
139 | - $json_token = http_request($myurl); | 139 | + $json_token = $this->http_request($myurl); |
140 | $access_tokens = json_decode($json_token, true); | 140 | $access_tokens = json_decode($json_token, true); |
141 | $access_token = $access_tokens['access_token']; | 141 | $access_token = $access_tokens['access_token']; |
142 | 142 | ||
@@ -154,7 +154,7 @@ class Index extends Api | @@ -154,7 +154,7 @@ class Index extends Api | ||
154 | 154 | ||
155 | $json_template = json_encode($template); | 155 | $json_template = json_encode($template); |
156 | $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" . $access_token; | 156 | $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" . $access_token; |
157 | - $json = http_request($url, urldecode($json_template)); | 157 | + $json = $this->http_request($url, urldecode($json_template)); |
158 | $rs = json_decode($json, true); | 158 | $rs = json_decode($json, true); |
159 | return $rs; | 159 | return $rs; |
160 | } | 160 | } |
-
请 注册 或 登录 后发表评论