作者 lyh

gx

@@ -3,23 +3,26 @@ @@ -3,23 +3,26 @@
3 namespace App\Http\Logic\Aside\Project; 3 namespace App\Http\Logic\Aside\Project;
4 4
5 5
  6 +use App\Enums\Common\Code;
6 use App\Helper\Arr; 7 use App\Helper\Arr;
7 use App\Helper\FormGlobalsoApi; 8 use App\Helper\FormGlobalsoApi;
8 use App\Http\Logic\Aside\BaseLogic; 9 use App\Http\Logic\Aside\BaseLogic;
9 use App\Http\Logic\Aside\Manage\ManageLogic; 10 use App\Http\Logic\Aside\Manage\ManageLogic;
10 -use App\Models\ASide\Product\Product;  
11 use App\Models\Blog\Blog; 11 use App\Models\Blog\Blog;
12 use App\Models\Channel\Channel; 12 use App\Models\Channel\Channel;
13 use App\Models\Channel\User; 13 use App\Models\Channel\User;
14 use App\Models\Channel\Zone; 14 use App\Models\Channel\Zone;
15 use App\Models\Devops\ServerConfig; 15 use App\Models\Devops\ServerConfig;
16 use App\Models\Inquiry\InquirySet; 16 use App\Models\Inquiry\InquirySet;
  17 +use App\Models\Manage\Manage;
17 use App\Models\News\News; 18 use App\Models\News\News;
  19 +use App\Models\Product\Product;
18 use App\Models\Project\DeployBuild; 20 use App\Models\Project\DeployBuild;
19 use App\Models\Project\DeployOptimize; 21 use App\Models\Project\DeployOptimize;
20 use App\Models\Project\Payment; 22 use App\Models\Project\Payment;
21 use App\Models\Project\Project; 23 use App\Models\Project\Project;
22 use App\Models\Task\Task; 24 use App\Models\Task\Task;
  25 +use App\Services\ProjectServer;
23 use App\Utils\EncryptUtils; 26 use App\Utils\EncryptUtils;
24 use Hashids\Hashids; 27 use Hashids\Hashids;
25 use Illuminate\Support\Facades\Cache; 28 use Illuminate\Support\Facades\Cache;
@@ -66,7 +69,7 @@ class ProjectLogic extends BaseLogic @@ -66,7 +69,7 @@ class ProjectLogic extends BaseLogic
66 'domain' => $item['deploy_optimize']['domain'] ?? 0, 69 'domain' => $item['deploy_optimize']['domain'] ?? 0,
67 'created_at' => date('Y年m月d日', strtotime($item['created_at'])), 70 'created_at' => date('Y年m月d日', strtotime($item['created_at'])),
68 'autologin_code' => $this->getAutoLoginCode($item['id']), 71 'autologin_code' => $this->getAutoLoginCode($item['id']),
69 - 'product_num' => (new Product())->getNumByProjectId($item['id']), 72 + 'product_num' => Product::getNumByProjectId($item['id']),
70 'keyword_num' => $item['deploy_build']['keyword_num'] ?? 0, 73 'keyword_num' => $item['deploy_build']['keyword_num'] ?? 0,
71 'article_num' => Blog::getNumByProjectId($item['id']) + News::getNumByProjectId($item['id']), 74 'article_num' => Blog::getNumByProjectId($item['id']) + News::getNumByProjectId($item['id']),
72 'task_finish_num' => Task::getNumByProjectId($item['id'], Task::STATUS_DOWN), 75 'task_finish_num' => Task::getNumByProjectId($item['id'], Task::STATUS_DOWN),