|
...
|
...
|
@@ -186,14 +186,14 @@ class BlogLogic extends BaseLogic |
|
|
|
public function paramProcessing($param){
|
|
|
|
if(isset($this->param['id'])){
|
|
|
|
$param['operator_id'] = $this->user['id'];
|
|
|
|
$param['category_id'] = ','.trim($this->param['category_id'],',').',';
|
|
|
|
$param['category_id'] = ','.trim($param['category_id'],',').',';
|
|
|
|
}else{
|
|
|
|
$this->param['create_id'] = $this->user['id'];
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$this->param['created_at'] = date('Y-m-d H:i:s',time());
|
|
|
|
$this->param['updated_at'] = date('Y-m-d H:i:s',time());
|
|
|
|
$this->param['category_id'] = ','.$this->param['category_id'].',';
|
|
|
|
$param['create_id'] = $this->user['id'];
|
|
|
|
$param['operator_id'] = $this->user['id'];
|
|
|
|
$param['project_id'] = $this->user['project_id'];
|
|
|
|
$param['created_at'] = date('Y-m-d H:i:s',time());
|
|
|
|
$param['updated_at'] = date('Y-m-d H:i:s',time());
|
|
|
|
$param['category_id'] = ','.$param['category_id'].',';
|
|
|
|
}
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
...
|
...
|
|