diff --git a/addons/shopro/job/Test.php b/addons/shopro/job/Test.php index 3d92b49..3ce8683 100644 --- a/addons/shopro/job/Test.php +++ b/addons/shopro/job/Test.php @@ -82,6 +82,13 @@ class Test extends BaseJob } $act['public_time'] = date('Y-m-d H:i:s', $public_time - $publicBefore * 86400); //设定的时间 $act['date'] = date('Y-m-d', $public_time - $publicBefore * 86400); //设定的日期 + $startTime = explode(' ', $act['startTime']); + if (count($startTime) == 2) { + $act['date'] = $startTime[0]; + $act['startTime'] = $startTime[1]; + } + $endTime = explode(' ', $act['endTime']); + if (count($endTime) == 2) $act['endTime'] = $endTime[1]; $query = (clone $_gameModel)::where('act_id', $act['id']); if ($act['type'] == 0) { //一次性活动 $query->where('public_time', $act['public_time'])->where('date', $act['date']);