正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -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 | - $commonTemplateModel->edit(['other'=>$info['other']],['project_id'=>$this->user['project_id'],'template_id'=>$info['template_id']]); | 64 | + if(!empty($info['other'])){ |
| 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 | } |
-
请 注册 或 登录 后发表评论