|
@@ -31,7 +31,7 @@ class SubNotice extends Controller
|
|
|
$todayStart = Carbon::today()->startOfDay()->getTimestamp(); // 今天开始时间 00:00:00
|
|
$todayStart = Carbon::today()->startOfDay()->getTimestamp(); // 今天开始时间 00:00:00
|
|
|
$todayEnd = Carbon::today()->endOfDay()->getTimestamp(); // 今天结束时间 23:59:59
|
|
$todayEnd = Carbon::today()->endOfDay()->getTimestamp(); // 今天结束时间 23:59:59
|
|
|
// 查询数据
|
|
// 查询数据
|
|
|
- $result = $CompanyModel->query()->get()->toArray();
|
|
|
|
|
|
|
+ $result = $CompanyModel->query()->where(['status' => '0'])->get()->toArray();
|
|
|
// 分配数据
|
|
// 分配数据
|
|
|
if (!$result) return 1;
|
|
if (!$result) return 1;
|
|
|
$key_index = 0;
|
|
$key_index = 0;
|