文档地址:https://s.w7.cc/index.php?c=wiki&do=view&id=1&list=186
注意事项:
1.先载入日志函数
load()->func('logging');
2.写入日志,参数 $data = array() 是个数组
logging_run($data);
示例:
//载入日志函数
load()->func('logging');
if($result){
//记录模板消息发送状态
$notice['status'] = 1;
$notice['meg'] = '付款成功模版消息发送成功';
logging_run($notice);
}else{
//记录模板消息发送状态
$notice['status'] = 0;
$notice['meg'] = '付款成功模版消息发送失败';
logging_run($notice);
}