作者 李宇航

合并分支 'develop' 到 'master'

Develop



查看合并请求 !498
@@ -33,9 +33,8 @@ class BTemplateLogController extends BaseController @@ -33,9 +33,8 @@ class BTemplateLogController extends BaseController
33 * @time :2023/8/23 11:05 33 * @time :2023/8/23 11:05
34 */ 34 */
35 public function lists(BTemplateLog $bTemplateLog){ 35 public function lists(BTemplateLog $bTemplateLog){
36 - unset($this->map['template_id']); 36 +// unset($this->map['template_id']);
37 $this->map['project_id'] = $this->user['project_id']; 37 $this->map['project_id'] = $this->user['project_id'];
38 - $this->map['source'] = 1;  
39 $this->map['is_custom'] = 0; 38 $this->map['is_custom'] = 0;
40 $lists = $bTemplateLog->lists($this->map,$this->page,$this->row,$this->order,['id','template_id','operator_id','source','created_at','updated_at']); 39 $lists = $bTemplateLog->lists($this->map,$this->page,$this->row,$this->order,['id','template_id','operator_id','source','created_at','updated_at']);
41 if(!empty($lists['list'])){ 40 if(!empty($lists['list'])){
@@ -113,7 +113,7 @@ class CustomTemplateLogic extends BaseLogic @@ -113,7 +113,7 @@ class CustomTemplateLogic extends BaseLogic
113 $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); 113 $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s');
114 $this->setTemplateLog($bSettingInfo['template_id'],$html,$this->param['id']); 114 $this->setTemplateLog($bSettingInfo['template_id'],$html,$this->param['id']);
115 } 115 }
116 - $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); 116 + $rs = $this->model->edit($this->param,['id'=>$this->param['id'],'project_id'=>$this->user['project_id']]);
117 if($rs === false){ 117 if($rs === false){
118 $this->fail('系统错误,请联系管理'); 118 $this->fail('系统错误,请联系管理');
119 } 119 }