<?php
$sz = array("张三","李四");
foreach ($sz as $key => $value) {
$wxid=mysql_fetch_array(mysql_query("select xm2 from t1 where xm1='$value'"));
$json = '{
"touser":"'.$wxid[0].'",
"template_id":"V83vTzK6rB_slBUlgApPEMtfUVpqq-DEBllg4Ty70Bw",
"url":"http://www.qq.php?id='.$id.'",
"topcolor":"#FF0000",
"data":{
"first": {
"value":"",
"color":"#DC143C"
},
"keyword1":{
"value":"'.$xx.'",
"color":"#0000ff"
},
"keyword2":{
"value":"点击查看",
"color":"#0000ff"
},
"remark":{
"value":"",
"color":"#173177"
}
}
}';
if ($id!="") {
curlGet($url,'post',$json);
}
}
?>
标签:
php
本文转载自: https://blog.csdn.net/qq_35776207/article/details/134394718
版权归原作者 1002710030 所有, 如有侵权,请联系我们删除。
版权归原作者 1002710030 所有, 如有侵权,请联系我们删除。