1、企业微信设置参考我这篇博客 https://blog.csdn.net/weixin_44880442/article/details/121774231?spm=1001.2014.3001.5501 2、PHP代码 #key=企业微信机器人中的值 $webhook = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key="; #这里需要修改 # curl初始化 $curl = curl_init(); #需要推送的url curl_setopt