修复订单微信提醒
This commit is contained in:
parent
b24e6fea45
commit
55ee58c372
|
|
@ -54,12 +54,10 @@ class timing extends appweb
|
|||
global $_M, $_YW;
|
||||
$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];
|
||||
//查询到期订单
|
||||
//查询的是设置的提醒天数,以及订单结束日期的前后3天数
|
||||
$where = " AND endtime = CURDATE() AND noticeday >= 0 ";
|
||||
$where = " endtime = CURDATE() AND noticeday >= 0 ";
|
||||
$noticeday = $this->tsql->table('noticeday')->where($where)->all();
|
||||
foreach ($noticeday as $val) {
|
||||
//延时2秒 // 通知天数 noticeday
|
||||
|
|
|
|||
Loading…
Reference in New Issue