作者 lyh

变更数据

... ... @@ -65,9 +65,11 @@ class GeoWritingsLogic extends BaseLogic
$this->param['status'] = GeoWritings::STATUS_INIT;
if(isset($this->param['id']) &&!empty($this->param['id'])){
$id = $this->param['id'];
$this->param['content_length'] = strlen($this->param['content'] ?? '');
$this->model->edit($this->param,['id'=>$id]);
}else{
$this->param['type'] = GeoWritings::TYPE_SUBMIT;
$this->param['content_length'] = strlen($this->param['content'] ?? '');
$this->param['uniqid'] = uniqid().$this->param['project_id'];
$id = $this->model->addReturnId($this->param);
}
... ...