|
...
|
...
|
@@ -93,7 +93,7 @@ class ATemplateLogic extends BaseLogic |
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前模板有项目在使用,不允许删除');
|
|
|
|
}
|
|
|
|
$rs = $this->model->edit(['deleted_status'=>$this->param['deleted_status'],'deleted_at'=>date('Y-m-d H:i:s')],['id'=>$this->param['id']]);
|
|
|
|
$rs = $this->model->edit(['deleted_status'=>1,'deleted_at'=>date('Y-m-d H:i:s')],['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
...
|
...
|
|