修复订单微信提醒

This commit is contained in:
cloud 2020-12-31 12:56:31 +08:00
parent b24e6fea45
commit 55ee58c372
1 changed files with 1 additions and 3 deletions

View File

@ -54,12 +54,10 @@ class timing extends appweb
global $_M, $_YW; global $_M, $_YW;
$this->webase = load::own_class('../met_wechat/include/class/LW_BASE', 'new'); $this->webase = load::own_class('../met_wechat/include/class/LW_BASE', 'new');
//当天日期时间 //当天日期时间
$curdate = date('Y-m-d', $this->time);
$strdate = strtotime($curdate);
$num = ['daya' => 0, 'dayb' => 0, 'dayc' => 0]; $num = ['daya' => 0, 'dayb' => 0, 'dayc' => 0];
//查询到期订单 //查询到期订单
//查询的是设置的提醒天数以及订单结束日期的前后3天数 //查询的是设置的提醒天数以及订单结束日期的前后3天数
$where = " AND endtime = CURDATE() AND noticeday >= 0 "; $where = " endtime = CURDATE() AND noticeday >= 0 ";
$noticeday = $this->tsql->table('noticeday')->where($where)->all(); $noticeday = $this->tsql->table('noticeday')->where($where)->all();
foreach ($noticeday as $val) { foreach ($noticeday as $val) {
//延时2秒 // 通知天数 noticeday //延时2秒 // 通知天数 noticeday