合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !3085
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -108,13 +108,16 @@ class GeoController extends BaseController | @@ -108,13 +108,16 @@ class GeoController extends BaseController | ||
| 108 | $token = trim($this->param['token']); | 108 | $token = trim($this->param['token']); |
| 109 | $data = GeoConfirm::where(['uniqid' => $token])->first(); | 109 | $data = GeoConfirm::where(['uniqid' => $token])->first(); |
| 110 | if (empty($data)){ | 110 | if (empty($data)){ |
| 111 | - return $this->error('当前授权已失效'); | 111 | + return $this->error('确认链接已重置,请查看最新推送链接!'); |
| 112 | } | 112 | } |
| 113 | $content = explode("\n", $data->content); | 113 | $content = explode("\n", $data->content); |
| 114 | $confirm = explode("\n", $data->confirm); | 114 | $confirm = explode("\n", $data->confirm); |
| 115 | $type = $data->type; | 115 | $type = $data->type; |
| 116 | $status = $data->status; | 116 | $status = $data->status; |
| 117 | - $result = compact('content', 'confirm', 'type', 'status'); | 117 | + $projectModel = new Project(); |
| 118 | + $projectInfo = $projectModel->read(['id' => $data->project_id],['title','version']); | ||
| 119 | + $project_title = $projectInfo['title'] ?? ''; | ||
| 120 | + $result = compact('content', 'confirm', 'type', 'status', 'project_title'); | ||
| 118 | $this->response('success',Code::SUCCESS,$result); | 121 | $this->response('success',Code::SUCCESS,$result); |
| 119 | } | 122 | } |
| 120 | 123 |
-
请 注册 或 登录 后发表评论