Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server
正在显示
3 个修改的文件
包含
11 行增加
和
8 行删除
| @@ -35,7 +35,7 @@ class Temp extends Command | @@ -35,7 +35,7 @@ class Temp extends Command | ||
| 35 | 35 | ||
| 36 | public function handle() | 36 | public function handle() |
| 37 | { | 37 | { |
| 38 | - $this->change_cname_projects_240(); | 38 | + $this->check_server_main_site(); |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | /** | 41 | /** |
| @@ -418,8 +418,8 @@ class Temp extends Command | @@ -418,8 +418,8 @@ class Temp extends Command | ||
| 418 | */ | 418 | */ |
| 419 | public function check_server_main_site() | 419 | public function check_server_main_site() |
| 420 | { | 420 | { |
| 421 | - $server_id = 15; | ||
| 422 | - $server_name = '美服1'; | 421 | + $server_id = 20; |
| 422 | + $server_name = '硅谷建站服务器'; | ||
| 423 | 423 | ||
| 424 | $server_ip_model = new ServersIp(); | 424 | $server_ip_model = new ServersIp(); |
| 425 | 425 |
| @@ -32,14 +32,14 @@ class InquiryForwardController extends BaseController | @@ -32,14 +32,14 @@ class InquiryForwardController extends BaseController | ||
| 32 | $this->map['message'] = ['like', '%' . $this->map['message'] . '%']; | 32 | $this->map['message'] = ['like', '%' . $this->map['message'] . '%']; |
| 33 | } | 33 | } |
| 34 | if (isset($this->param['start_date']) && isset($this->param['end_date'])) { | 34 | if (isset($this->param['start_date']) && isset($this->param['end_date'])) { |
| 35 | - $this->map['inquiry_date'] = ['between', [$this->map['start_date'], $this->map['end_date']]]; | 35 | + $this->map['inquiry_date'] = ['between', [$this->map['start_date'] . ' 00:00:00', $this->map['end_date'] . ' 23:59:59']]; |
| 36 | unset($this->map['start_date']); | 36 | unset($this->map['start_date']); |
| 37 | unset($this->map['end_date']); | 37 | unset($this->map['end_date']); |
| 38 | } elseif (isset($this->param['start_date'])) { | 38 | } elseif (isset($this->param['start_date'])) { |
| 39 | - $this->map['inquiry_date'] = ['>=', $this->map['start_date']]; | 39 | + $this->map['inquiry_date'] = ['>=', $this->map['start_date'] . ' 00:00:00']; |
| 40 | unset($this->map['start_date']); | 40 | unset($this->map['start_date']); |
| 41 | } elseif (isset($this->param['end_date'])) { | 41 | } elseif (isset($this->param['end_date'])) { |
| 42 | - $this->map['inquiry_date'] = ['<=', $this->map['end_date']]; | 42 | + $this->map['inquiry_date'] = ['<=', $this->map['end_date'] . ' 23:59:59']; |
| 43 | unset($this->map['end_date']); | 43 | unset($this->map['end_date']); |
| 44 | } | 44 | } |
| 45 | $lists = $inquiryForwardLogic->getInquiryLists($this->map, $this->page, $this->row, $this->order); | 45 | $lists = $inquiryForwardLogic->getInquiryLists($this->map, $this->page, $this->row, $this->order); |
| @@ -258,7 +258,7 @@ class InquiryForwardLogic extends BaseLogic | @@ -258,7 +258,7 @@ class InquiryForwardLogic extends BaseLogic | ||
| 258 | if (count($re_route) > 0) { | 258 | if (count($re_route) > 0) { |
| 259 | //根据项目id查询项目,并根据询盘量排序 | 259 | //根据项目id查询项目,并根据询盘量排序 |
| 260 | $project_ids = array_column($re_route, 'project_id'); | 260 | $project_ids = array_column($re_route, 'project_id'); |
| 261 | - $re_project = InquiryProject::select(['id', 'project', 'channel', 'domain'])->whereIn('id', $project_ids)->orderBy('recent_inquiry', 'asc')->get(); | 261 | + $re_project = InquiryProject::select(['id', 'project', 'channel', 'domain', 'recent_inquiry', 'remark', 'version'])->whereIn('id', $project_ids)->orderBy('recent_inquiry', 'asc')->get(); |
| 262 | 262 | ||
| 263 | if ($re_project->count() > 0) { | 263 | if ($re_project->count() > 0) { |
| 264 | //根据代理商去重 | 264 | //根据代理商去重 |
| @@ -289,7 +289,10 @@ class InquiryForwardLogic extends BaseLogic | @@ -289,7 +289,10 @@ class InquiryForwardLogic extends BaseLogic | ||
| 289 | $lists[] = [ | 289 | $lists[] = [ |
| 290 | 'id' => $vp->id, | 290 | 'id' => $vp->id, |
| 291 | 'project' => $vp->project, | 291 | 'project' => $vp->project, |
| 292 | - 'route' => $vp->domain . $route | 292 | + 'route' => $vp->domain . $route, |
| 293 | + 'recent_inquiry' => $vp->recent_inquiry, | ||
| 294 | + 'remark' => $vp->remark ?: '', | ||
| 295 | + 'version' => $vp->version | ||
| 293 | ]; | 296 | ]; |
| 294 | } | 297 | } |
| 295 | } | 298 | } |
-
请 注册 或 登录 后发表评论