作者 lyh

gx脚本demo

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