作者 郭文星

112323

@@ -94,12 +94,12 @@ class Index extends Api @@ -94,12 +94,12 @@ class Index extends Api
94 * 公众号推送审核信息给经纪人 94 * 公众号推送审核信息给经纪人
95 */ 95 */
96 public function senWxmsgToAgentUser($titdesc="", $remark="") 96 public function senWxmsgToAgentUser($titdesc="", $remark="")
97 - {$appId = 'wxb7dd0c03865a94e0'; 97 + { $appId = 'wxb7dd0c03865a94e0';
98 $appSecret = '6af75a6fb8211da45631630e34769f82'; 98 $appSecret = '6af75a6fb8211da45631630e34769f82';
99 $openId = 'o5ABA4yWDTLRTf3LkBMMHoV7XOvQ'; 99 $openId = 'o5ABA4yWDTLRTf3LkBMMHoV7XOvQ';
100 $unionId = 'ojyUX6oNFoQMqoCd1JWtfwQs-CeA'; 100 $unionId = 'ojyUX6oNFoQMqoCd1JWtfwQs-CeA';
101 // 获取token 101 // 获取token
102 - $myurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appid . "&secret=" . $secret; 102 + $myurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appId . "&secret=" . $appSecret;
103 $json_token = http_request($myurl); 103 $json_token = http_request($myurl);
104 $access_tokens = json_decode($json_token, true); 104 $access_tokens = json_decode($json_token, true);
105 $accessToken = $access_tokens['access_token']; 105 $accessToken = $access_tokens['access_token'];