|
...
|
...
|
@@ -59,7 +59,7 @@ class BlogLabelLogic extends BaseLogic |
|
|
|
public function edit_blog_label(){
|
|
|
|
$this->verifyParamName($this->param['name'],$this->param['id']);
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
$rs = $this->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
...
|
...
|
@@ -74,7 +74,10 @@ class BlogLabelLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function status_blog_label(){
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
$this->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$rs = $this->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
/**
|
|
...
|
...
|
@@ -94,7 +97,10 @@ class BlogLabelLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->param['id'] = ['in',$this->param['id']];
|
|
|
|
$this->del($this->param,$ids);
|
|
|
|
$rs = $this->model->del($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|