发送朋友圈优化时间限制
This commit is contained in:
@@ -76,6 +76,12 @@ class WorkbenchMomentsJob
|
||||
if (!$config) {
|
||||
continue;
|
||||
}
|
||||
$startTime = strtotime(date('Y-m-d '. $config['startTime']));
|
||||
$endTime = strtotime(date('Y-m-d '. $config['endTime']));
|
||||
// 如果时间不符,则跳过
|
||||
if($startTime > time() || $endTime < time()){
|
||||
continue;
|
||||
}
|
||||
|
||||
// 获取设备
|
||||
$devices = $this->getDevice($workbench, $config);
|
||||
|
||||
Reference in New Issue
Block a user