|
...
|
...
|
@@ -528,11 +528,10 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$is_custom = $is_list = 0;
|
|
|
|
}
|
|
|
|
//查看当前数据是否还存在
|
|
|
|
$condition = ['template_id'=>$template_id,'is_list'=>$is_list,'is_custom'=>$is_custom,'source'=>$typeSource,'common_type'=>$type];
|
|
|
|
$condition = ['project_id'=>$this->user['project_id'],'template_id'=>$template_id,'is_list'=>$is_list,'is_custom'=>$is_custom,'source'=>$typeSource,'common_type'=>$type];
|
|
|
|
$info = $templateComModel->read($condition);
|
|
|
|
if($info === false){
|
|
|
|
$data = array_merge($param,$condition);
|
|
|
|
$data['project_id'] = $this->user['project_id'];
|
|
|
|
$templateComModel->add($data);
|
|
|
|
}else{
|
|
|
|
$templateComModel->edit($param,$condition);
|
...
|
...
|
|