|
@@ -39,6 +39,13 @@ class OptimizationReportController extends BaseController |
|
@@ -39,6 +39,13 @@ class OptimizationReportController extends BaseController |
|
39
|
* @time :2024/3/7 15:54
|
39
|
* @time :2024/3/7 15:54
|
|
40
|
*/
|
40
|
*/
|
|
41
|
public function getOptimizationReport(){
|
41
|
public function getOptimizationReport(){
|
|
|
|
42
|
+ $this->request->validate([
|
|
|
|
43
|
+ 'project_id' => 'required',
|
|
|
|
44
|
+ 'date'=>'required',
|
|
|
|
45
|
+ ], [
|
|
|
|
46
|
+ 'project_id.required' => '项目id不能为空',
|
|
|
|
47
|
+ 'date.required' => '时间不能为空',
|
|
|
|
48
|
+ ]);
|
|
42
|
ProjectServer::useProject($this->param['project_id']);
|
49
|
ProjectServer::useProject($this->param['project_id']);
|
|
43
|
$data = [];
|
50
|
$data = [];
|
|
44
|
$projectModel = new Project();
|
51
|
$projectModel = new Project();
|
|
@@ -55,6 +62,7 @@ class OptimizationReportController extends BaseController |
|
@@ -55,6 +62,7 @@ class OptimizationReportController extends BaseController |
|
55
|
'cert_info' => date('Y-m-d', strtotime($domain_info['certificate_start_time'])) . ' - ' .date('Y-m-d', strtotime($domain_info['certificate_end_time'])),
|
62
|
'cert_info' => date('Y-m-d', strtotime($domain_info['certificate_start_time'])) . ' - ' .date('Y-m-d', strtotime($domain_info['certificate_end_time'])),
|
|
56
|
];
|
63
|
];
|
|
57
|
}
|
64
|
}
|
|
|
|
65
|
+ $data['domain'] = $domain_info;
|
|
58
|
//方案信息
|
66
|
//方案信息
|
|
59
|
$data['plan_information'] = $this->plan_information($projectInfo);
|
67
|
$data['plan_information'] = $this->plan_information($projectInfo);
|
|
60
|
//排名数据
|
68
|
//排名数据
|