作者 lyh

gx

@@ -510,7 +510,9 @@ class BTemplateLogic extends BaseLogic @@ -510,7 +510,9 @@ class BTemplateLogic extends BaseLogic
510 $templateCommonModel->edit($data,['id'=>$commonInfo['id']]); 510 $templateCommonModel->edit($data,['id'=>$commonInfo['id']]);
511 } 511 }
512 //更新所有界面的other 512 //更新所有界面的other
513 - return $templateCommonModel->edit(['other'=>$handleInfo['other']],['project_id'=>$this->user['project_id'],'template_id'=>$template_id]); 513 + if($template_id != 0){
  514 + return $templateCommonModel->edit(['other'=>$handleInfo['other']],['project_id'=>$this->user['project_id'],'template_id'=>$template_id]);
  515 + }
514 } 516 }
515 517
516 /** 518 /**