作者 lyh

gx

@@ -8,21 +8,19 @@ use App\Helper\Arr; @@ -8,21 +8,19 @@ use App\Helper\Arr;
8 use App\Helper\FormGlobalsoApi; 8 use App\Helper\FormGlobalsoApi;
9 use App\Http\Logic\Aside\BaseLogic; 9 use App\Http\Logic\Aside\BaseLogic;
10 use App\Http\Logic\Aside\Manage\ManageLogic; 10 use App\Http\Logic\Aside\Manage\ManageLogic;
  11 +use App\Models\ASide\Product;
11 use App\Models\Blog\Blog; 12 use App\Models\Blog\Blog;
12 use App\Models\Channel\Channel; 13 use App\Models\Channel\Channel;
13 use App\Models\Channel\User; 14 use App\Models\Channel\User;
14 use App\Models\Channel\Zone; 15 use App\Models\Channel\Zone;
15 use App\Models\Devops\ServerConfig; 16 use App\Models\Devops\ServerConfig;
16 use App\Models\Inquiry\InquirySet; 17 use App\Models\Inquiry\InquirySet;
17 -use App\Models\Manage\Manage;  
18 use App\Models\News\News; 18 use App\Models\News\News;
19 -use App\Models\Product\Product;  
20 use App\Models\Project\DeployBuild; 19 use App\Models\Project\DeployBuild;
21 use App\Models\Project\DeployOptimize; 20 use App\Models\Project\DeployOptimize;
22 use App\Models\Project\Payment; 21 use App\Models\Project\Payment;
23 use App\Models\Project\Project; 22 use App\Models\Project\Project;
24 use App\Models\Task\Task; 23 use App\Models\Task\Task;
25 -use App\Services\ProjectServer;  
26 use App\Utils\EncryptUtils; 24 use App\Utils\EncryptUtils;
27 use Hashids\Hashids; 25 use Hashids\Hashids;
28 use Illuminate\Support\Facades\Cache; 26 use Illuminate\Support\Facades\Cache;
@@ -20,7 +20,7 @@ class Product extends Base @@ -20,7 +20,7 @@ class Product extends Base
20 //设置关联表名 20 //设置关联表名
21 protected $table = 'gl_product'; 21 protected $table = 'gl_product';
22 //连接数据库 22 //连接数据库
23 -// protected $connection = 'custom_mysql'; 23 + protected $connection = 'custom_mysql';
24 const STATUS_DRAFT = 0; 24 const STATUS_DRAFT = 0;
25 const STATUS_ON = 1; 25 const STATUS_ON = 1;
26 const STATUS_RECYCLE = 2; 26 const STATUS_RECYCLE = 2;
@@ -153,8 +153,8 @@ class Product extends Base @@ -153,8 +153,8 @@ class Product extends Base
153 // return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id); 153 // return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id);
154 // } 154 // }
155 155
156 - public static function getNumByProjectId($project_id){  
157 - return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();  
158 - } 156 +// public static function getNumByProjectId($project_id){
  157 +// return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
  158 +// }
159 159
160 } 160 }