作者 lyh

gx脚本demo

@@ -309,7 +309,7 @@ class CustomTemplateLogic extends BaseLogic @@ -309,7 +309,7 @@ class CustomTemplateLogic extends BaseLogic
309 $typeSource = $this->getType(); 309 $typeSource = $this->getType();
310 } 310 }
311 //查看当前数据是否还存在 311 //查看当前数据是否还存在
312 - $condition = ['template_id'=>$template_id,'source'=>$typeSource,'common_type'=>$type]; 312 + $condition = ['project_id'=>$this->user['project_id'],'template_id'=>$template_id,'source'=>$typeSource,'common_type'=>$type];
313 $info = $templateComModel->read($condition); 313 $info = $templateComModel->read($condition);
314 if($info === false){ 314 if($info === false){
315 $data = array_merge($param,$condition); 315 $data = array_merge($param,$condition);