正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
| @@ -88,14 +88,13 @@ class GeoController extends BaseController | @@ -88,14 +88,13 @@ class GeoController extends BaseController | ||
| 88 | if ($info['status'] != GeoWritings::STATUS_RUNNING){ | 88 | if ($info['status'] != GeoWritings::STATUS_RUNNING){ |
| 89 | return $this->error('当前文章已确认,不可再次确认'); | 89 | return $this->error('当前文章已确认,不可再次确认'); |
| 90 | } | 90 | } |
| 91 | - $param = [ | ||
| 92 | - 'confirm_ip'=>$this->request->ip(), | ||
| 93 | - 'confirm_at'=>date('Y-m-d H:i:s'), | ||
| 94 | - 'content_length'=>$info['content'], | ||
| 95 | - 'status' | ||
| 96 | - ]; | 91 | + $this->param['confirm_ip'] = $this->request->ip(); |
| 92 | + $this->param['confirm_at'] = date('Y-m-d H:i:s'); | ||
| 93 | + $this->param['content_length'] = strlen($this->param['content']); | ||
| 94 | + $this->param['status'] = 3; | ||
| 95 | + $geoWritingsModel->edit($this->param,['uniqid' => $token]); | ||
| 97 | // FIXME 验证完成,保存数据,计算内容长度,处理内容中的资源, IP 确认时间 状态 | 96 | // FIXME 验证完成,保存数据,计算内容长度,处理内容中的资源, IP 确认时间 状态 |
| 98 | - return $data; | 97 | + return true; |
| 99 | } | 98 | } |
| 100 | 99 | ||
| 101 | /** | 100 | /** |
-
请 注册 或 登录 后发表评论