作者 lyh

gx

@@ -587,7 +587,7 @@ class ProjectController extends BaseController @@ -587,7 +587,7 @@ class ProjectController extends BaseController
587 */ 587 */
588 public function getServiceConfig(){ 588 public function getServiceConfig(){
589 $serviceConfigModel = new ServerConfig(); 589 $serviceConfigModel = new ServerConfig();
590 - $list = $serviceConfigModel->list($this->param,'id',['id','type','title','init_domain','service_type']); 590 + $list = $serviceConfigModel->list($this->param,'id',['id','type','title','count','init_domain','service_type']);
591 $this->response('success',Code::SUCCESS,$list); 591 $this->response('success',Code::SUCCESS,$list);
592 } 592 }
593 593
@@ -149,7 +149,7 @@ class CustomModuleContentLogic extends BaseLogic @@ -149,7 +149,7 @@ class CustomModuleContentLogic extends BaseLogic
149 * @time :2023/12/7 15:04 149 * @time :2023/12/7 15:04
150 */ 150 */
151 public function contentAdd(){ 151 public function contentAdd(){
152 -// try { 152 + try {
153 $this->param['sort'] = $this->setNewsSort(); 153 $this->param['sort'] = $this->setNewsSort();
154 $id = $this->model->addReturnId($this->param); 154 $id = $this->model->addReturnId($this->param);
155 $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE, 155 $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
@@ -157,9 +157,9 @@ class CustomModuleContentLogic extends BaseLogic @@ -157,9 +157,9 @@ class CustomModuleContentLogic extends BaseLogic
157 $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route); 157 $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
158 $this->curlDelRoute(['new_route'=>$route]); 158 $this->curlDelRoute(['new_route'=>$route]);
159 $this->edit(['route' => $route], ['id' => $id]); 159 $this->edit(['route' => $route], ['id' => $id]);
160 -// }catch (\Exception $e){  
161 -// $this->fail('系统错误,请联系管理员');  
162 -// } 160 + }catch (\Exception $e){
  161 + $this->fail('系统错误,请联系管理员');
  162 + }
163 return $id; 163 return $id;
164 } 164 }
165 165