//留言提醒
function noticemessage($weixinopenid,$first,$keyword1,$time,$remark){
//将信息提交到发送信息接口,然后将信息发送到绑定微信号中
$fsurl="https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={$this->acces_token}";
$fsdatajson=array(
"touser"=>$weixinopenid,
"template_id"=>$mobanid,
"url"=>$url,
"topcolor"=>"#FF0000",
"data"=>array(
"first"=>array(
"value"=>$first,
"color"=>"#173177"
),
"keyword1"=>array(
"value"=>$keyword1,
"color"=>"#173177"
),
"keyword2"=>array (
"value"=>$time,
"color"=>"#173177"
),
"remark"=>array (
"value"=>$remark,
"color"=>"#173177"
)
)
);
$fsdata=json_encode($fsdatajson);
$this->https_request($fsurl,$fsdata);
}
也就是这段代码要执行一万次以上,$this->https_request($fsurl,$fsdata);最关键是这条语句,最后提交。
最佳答案