作者 lyh

gx

@@ -61,7 +61,9 @@ class BTemplateLogLogic extends BaseLogic @@ -61,7 +61,9 @@ class BTemplateLogLogic extends BaseLogic
61 $commonTemplateModel = new BTemplateCommon(); 61 $commonTemplateModel = new BTemplateCommon();
62 $commonTemplateModel->edit($commonData,['template_id'=>$info['template_id'],'type'=>1,'project_id'=>$this->user['project_id']]); 62 $commonTemplateModel->edit($commonData,['template_id'=>$info['template_id'],'type'=>1,'project_id'=>$this->user['project_id']]);
63 //更新所有界面的other 63 //更新所有界面的other
  64 + if(!empty($info['other'])){
64 $commonTemplateModel->edit(['other'=>$info['other']],['project_id'=>$this->user['project_id'],'template_id'=>$info['template_id']]); 65 $commonTemplateModel->edit(['other'=>$info['other']],['project_id'=>$this->user['project_id'],'template_id'=>$info['template_id']]);
  66 + }
65 }catch (\Exception $e){ 67 }catch (\Exception $e){
66 $this->fail('系统错误,请联系管理员'); 68 $this->fail('系统错误,请联系管理员');
67 } 69 }