作者 lyh

gx

@@ -38,7 +38,7 @@ class ServiceCount extends Command @@ -38,7 +38,7 @@ class ServiceCount extends Command
38 * @time :2024/1/29 15:31 38 * @time :2024/1/29 15:31
39 */ 39 */
40 public function handle(){ 40 public function handle(){
41 - $this->serverConfigCount(); 41 + return $this->serverConfigCount();
42 } 42 }
43 43
44 /** 44 /**
@@ -52,7 +52,7 @@ class ServiceCount extends Command @@ -52,7 +52,7 @@ class ServiceCount extends Command
52 $model = new ServerConfig(); 52 $model = new ServerConfig();
53 $list = $model->list(); 53 $list = $model->list();
54 $projectModel = new Project(); 54 $projectModel = new Project();
55 - foreach ($list as $k => $v){ 55 + foreach ($list as $v){
56 if($v['type'] == 1){ 56 if($v['type'] == 1){
57 $count = $projectModel->formatQuery(['serve_id'=>$v['id']])->count(); 57 $count = $projectModel->formatQuery(['serve_id'=>$v['id']])->count();
58 //服务器 58 //服务器
@@ -133,6 +133,7 @@ class ProjectLogic extends BaseLogic @@ -133,6 +133,7 @@ class ProjectLogic extends BaseLogic
133 public function projectSave(){ 133 public function projectSave(){
134 DB::beginTransaction(); 134 DB::beginTransaction();
135 try { 135 try {
  136 + $this->param['project_location'] = 0;//TODO::图片文件存储不同地方,上线后删除
136 if($this->param['type'] == Project::TYPE_SEVEN){ 137 if($this->param['type'] == Project::TYPE_SEVEN){
137 //错误单直接返回,单独处理 138 //错误单直接返回,单独处理
138 $this->setTypeSevenEdit($this->param); 139 $this->setTypeSevenEdit($this->param);