作者 lyh

gx

@@ -59,7 +59,7 @@ class BlogLabelLogic extends BaseLogic @@ -59,7 +59,7 @@ class BlogLabelLogic extends BaseLogic
59 public function edit_blog_label(){ 59 public function edit_blog_label(){
60 $this->verifyParamName($this->param['name'],$this->param['id']); 60 $this->verifyParamName($this->param['name'],$this->param['id']);
61 $this->param['operator_id'] = $this->user['id']; 61 $this->param['operator_id'] = $this->user['id'];
62 - $rs = $this->edit($this->param,['id'=>$this->param['id']]); 62 + $rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
63 if($rs === false){ 63 if($rs === false){
64 $this->fail('error'); 64 $this->fail('error');
65 } 65 }
@@ -74,7 +74,10 @@ class BlogLabelLogic extends BaseLogic @@ -74,7 +74,10 @@ class BlogLabelLogic extends BaseLogic
74 */ 74 */
75 public function status_blog_label(){ 75 public function status_blog_label(){
76 $this->param['operator_id'] = $this->user['id']; 76 $this->param['operator_id'] = $this->user['id'];
77 - $this->edit($this->param,['id'=>$this->param['id']]); 77 + $rs = $this->edit($this->param,['id'=>$this->param['id']]);
  78 + if($rs === false){
  79 + $this->fail('error');
  80 + }
78 return $this->success(); 81 return $this->success();
79 } 82 }
80 /** 83 /**
@@ -94,7 +97,10 @@ class BlogLabelLogic extends BaseLogic @@ -94,7 +97,10 @@ class BlogLabelLogic extends BaseLogic
94 } 97 }
95 } 98 }
96 $this->param['id'] = ['in',$this->param['id']]; 99 $this->param['id'] = ['in',$this->param['id']];
97 - $this->del($this->param,$ids); 100 + $rs = $this->model->del($this->param);
  101 + if($rs === false){
  102 + $this->fail('error');
  103 + }
98 return $this->success(); 104 return $this->success();
99 } 105 }
100 106