|
...
|
...
|
@@ -18,6 +18,7 @@ use App\Models\Channel\Channel; |
|
|
|
use App\Models\Channel\User;
|
|
|
|
use App\Models\Channel\Zone;
|
|
|
|
use App\Models\Com\City;
|
|
|
|
use App\Models\Com\UpdateLog;
|
|
|
|
use App\Models\Devops\ServerConfig;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\HomeCount\Count;
|
|
...
|
...
|
@@ -366,6 +367,8 @@ class ProjectController extends BaseController |
|
|
|
$item['article_num'] = ($data['blog'] ?? 0) + ($data['news'] ?? 0);
|
|
|
|
$item['task_finish_num'] = Task::getNumByProjectId($item['id'], Task::STATUS_DOWN);
|
|
|
|
$item['task_pending_num'] = Task::getNumByProjectId($item['id'], [Task::STATUS_DONGING, Task::STATUS_WAIT]);
|
|
|
|
$item['collect_time'] = $item['is_upgrade'] ? UpdateLog::getProjectUpdate($item['id']) : '';
|
|
|
|
|
|
|
|
return $item;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|