正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -31,15 +31,15 @@ class GeoController extends BaseController | @@ -31,15 +31,15 @@ class GeoController extends BaseController | ||
| 31 | try { | 31 | try { |
| 32 | $token = trim($this->param['token']); | 32 | $token = trim($this->param['token']); |
| 33 | $param = Crypt::decrypt($token); | 33 | $param = Crypt::decrypt($token); |
| 34 | - if ($param['send_at'] + 86400 < time()) { | ||
| 35 | - | ||
| 36 | - } | ||
| 37 | - $project_id = $param['project_id']; | ||
| 38 | - } catch (\Exception $e) { | ||
| 39 | - return $this->error('非法请求'); | 34 | + }catch (\Exception $e){ |
| 35 | + $this->response('非法请求'); | ||
| 36 | + } | ||
| 37 | + if ($param['send_at'] + 86400 < time()) { | ||
| 38 | + $this->response('非法请求,已过期'); | ||
| 40 | } | 39 | } |
| 40 | + $project_id = $param['project_id']; | ||
| 41 | $projectModel = new Project(); | 41 | $projectModel = new Project(); |
| 42 | - $projectInfo = $projectModel->read(['project_id' => $project_id],['title','version']); | 42 | + $projectInfo = $projectModel->read(['id' => $project_id],['title','version']); |
| 43 | $geoWritingsModel = new GeoWritings(); | 43 | $geoWritingsModel = new GeoWritings(); |
| 44 | $lists = $geoWritingsModel->list(['project_id' => $project_id, 'status' => 2 ,'is_del' => GeoWritings::IS_DEL_FALSE],'id',['title', 'status', 'uniqid', 'confirm_at']); | 44 | $lists = $geoWritingsModel->list(['project_id' => $project_id, 'status' => 2 ,'is_del' => GeoWritings::IS_DEL_FALSE],'id',['title', 'status', 'uniqid', 'confirm_at']); |
| 45 | $result = [ | 45 | $result = [ |
-
请 注册 或 登录 后发表评论