正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -139,8 +139,12 @@ class BTemplateLogLogic extends BaseLogic | @@ -139,8 +139,12 @@ class BTemplateLogLogic extends BaseLogic | ||
| 139 | $param['html_style'] = null; | 139 | $param['html_style'] = null; |
| 140 | $typeSource = $this->getType($source,$is_list,$is_custom,$type,$template_id); | 140 | $typeSource = $this->getType($source,$is_list,$is_custom,$type,$template_id); |
| 141 | } | 141 | } |
| 142 | + if($typeSource == 99){ | ||
| 143 | + $condition = ['project_id'=>$this->user['project_id'],'template_id'=>$template_id,'is_list'=>0,'is_custom'=>0,'source'=>$typeSource,'common_type'=>$type]; | ||
| 144 | + }else{ | ||
| 142 | //查看当前数据是否还存在 | 145 | //查看当前数据是否还存在 |
| 143 | $condition = ['project_id'=>$this->user['project_id'],'template_id'=>$template_id,'is_list'=>$is_list,'is_custom'=>$is_custom,'source'=>$typeSource,'common_type'=>$type]; | 146 | $condition = ['project_id'=>$this->user['project_id'],'template_id'=>$template_id,'is_list'=>$is_list,'is_custom'=>$is_custom,'source'=>$typeSource,'common_type'=>$type]; |
| 147 | + } | ||
| 144 | $info = $templateComModel->read($condition); | 148 | $info = $templateComModel->read($condition); |
| 145 | if($info === false){ | 149 | if($info === false){ |
| 146 | $data = array_merge($param,$condition); | 150 | $data = array_merge($param,$condition); |
-
请 注册 或 登录 后发表评论