|
...
|
...
|
@@ -209,12 +209,16 @@ class BlogLogic extends BaseLogic |
|
|
|
public function paramProcessing($param){
|
|
|
|
if(isset($this->param['id'])){
|
|
|
|
$param['operator_id'] = $this->user['id'];
|
|
|
|
$param['category_id'] = ','.trim($param['category_id'],',').',';
|
|
|
|
if(isset($param['category_id']) && !empty($param['category_id'])){
|
|
|
|
$param['category_id'] = ','.trim($param['category_id'],',').',';
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$param['create_id'] = $this->user['id'];
|
|
|
|
$param['operator_id'] = $this->user['id'];
|
|
|
|
$param['project_id'] = $this->user['project_id'];
|
|
|
|
$param['category_id'] = ','.$param['category_id'].',';
|
|
|
|
if(isset($param['category_id']) && !empty($param['category_id'])){
|
|
|
|
$param['category_id'] = ','.$param['category_id'].',';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
...
|
...
|
|