正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -65,9 +65,11 @@ class GeoWritingsLogic extends BaseLogic | @@ -65,9 +65,11 @@ class GeoWritingsLogic extends BaseLogic | ||
| 65 | $this->param['status'] = GeoWritings::STATUS_INIT; | 65 | $this->param['status'] = GeoWritings::STATUS_INIT; |
| 66 | if(isset($this->param['id']) &&!empty($this->param['id'])){ | 66 | if(isset($this->param['id']) &&!empty($this->param['id'])){ |
| 67 | $id = $this->param['id']; | 67 | $id = $this->param['id']; |
| 68 | + $this->param['content_length'] = strlen($this->param['content'] ?? ''); | ||
| 68 | $this->model->edit($this->param,['id'=>$id]); | 69 | $this->model->edit($this->param,['id'=>$id]); |
| 69 | }else{ | 70 | }else{ |
| 70 | $this->param['type'] = GeoWritings::TYPE_SUBMIT; | 71 | $this->param['type'] = GeoWritings::TYPE_SUBMIT; |
| 72 | + $this->param['content_length'] = strlen($this->param['content'] ?? ''); | ||
| 71 | $this->param['uniqid'] = uniqid().$this->param['project_id']; | 73 | $this->param['uniqid'] = uniqid().$this->param['project_id']; |
| 72 | $id = $this->model->addReturnId($this->param); | 74 | $id = $this->model->addReturnId($this->param); |
| 73 | } | 75 | } |
-
请 注册 或 登录 后发表评论