微擎receiver.php里面应该怎么写
发布网友
发布时间:2022-04-21 21:57
我来回答
共1个回答
热心网友
时间:2023-09-06 19:56
https://www.kancloud.cn/donknap/we7/135286
defined('IN_IA') or exit('Access Denied');
class PicTranMoleReceiver extends WeMoleReceiver {
public function receive() {
$type = $this->message['type'];
//这里定义此模块进行消息订阅时的, 消息到达以后的具体处理过程, 请查看微擎文档来编写你的代码
$c = '';
foreach ($this->message as $key => $value) {
$c .= "$key : $value \r\n";
}
file_put_contents('e:\\receive.txt', $c);
}
}