|
@@ -6,6 +6,7 @@ use App\Http\Logic\Aside\BaseLogic; |
|
@@ -6,6 +6,7 @@ use App\Http\Logic\Aside\BaseLogic; |
|
6
|
use App\Http\Logic\Aside\Manage\ManageLogic;
|
6
|
use App\Http\Logic\Aside\Manage\ManageLogic;
|
|
7
|
use App\Models\Channel\Channel;
|
7
|
use App\Models\Channel\Channel;
|
|
8
|
use App\Models\Optimize\Process;
|
8
|
use App\Models\Optimize\Process;
|
|
|
|
9
|
+use App\Models\Project\OnlineCheck;
|
|
9
|
use App\Models\Project\Project;
|
10
|
use App\Models\Project\Project;
|
|
10
|
|
11
|
|
|
11
|
/**
|
12
|
/**
|
|
@@ -20,7 +21,7 @@ class ProcessLogic extends BaseLogic |
|
@@ -20,7 +21,7 @@ class ProcessLogic extends BaseLogic |
|
20
|
{
|
21
|
{
|
|
21
|
parent::__construct();
|
22
|
parent::__construct();
|
|
22
|
$this->param = $this->requestAll;
|
23
|
$this->param = $this->requestAll;
|
|
23
|
- $this->model = new Project();
|
24
|
+ $this->model = new OnlineCheck();
|
|
24
|
}
|
25
|
}
|
|
25
|
|
26
|
|
|
26
|
/**
|
27
|
/**
|
|
@@ -70,7 +71,7 @@ class ProcessLogic extends BaseLogic |
|
@@ -70,7 +71,7 @@ class ProcessLogic extends BaseLogic |
|
70
|
'optimize_optimist' => ManageLogic::getCacheName($item['deploy_optimize']['optimist_mid'] ?? 0), //优化师
|
71
|
'optimize_optimist' => ManageLogic::getCacheName($item['deploy_optimize']['optimist_mid'] ?? 0), //优化师
|
|
71
|
'optimize_assist' => ManageLogic::getCacheName($item['deploy_optimize']['assist_mid'] ?? 0), //优化助理
|
72
|
'optimize_assist' => ManageLogic::getCacheName($item['deploy_optimize']['assist_mid'] ?? 0), //优化助理
|
|
72
|
'optimize_tech' => ManageLogic::getCacheName($item['deploy_optimize']['tech_mid'] ?? 0), //售后技术
|
73
|
'optimize_tech' => ManageLogic::getCacheName($item['deploy_optimize']['tech_mid'] ?? 0), //售后技术
|
|
73
|
- 'type' => $this->model::typeMap()[$item['type']] ?? '',
|
74
|
+ 'type' => Project::typeMap()[$item['type']] ?? '',
|
|
74
|
'test_domain' => $item['deploy_build']['test_domain'] ?? 0,
|
75
|
'test_domain' => $item['deploy_build']['test_domain'] ?? 0,
|
|
75
|
'domain' => $item['deploy_optimize']['domain'] ?? 0,
|
76
|
'domain' => $item['deploy_optimize']['domain'] ?? 0,
|
|
76
|
'created_at' => date('Y年m月d日', strtotime($item['created_at'])),
|
77
|
'created_at' => date('Y年m月d日', strtotime($item['created_at'])),
|
|
@@ -80,4 +81,29 @@ class ProcessLogic extends BaseLogic |
|
@@ -80,4 +81,29 @@ class ProcessLogic extends BaseLogic |
|
80
|
];
|
81
|
];
|
|
81
|
return $items;
|
82
|
return $items;
|
|
82
|
}
|
83
|
}
|
|
|
|
84
|
+
|
|
|
|
85
|
+ /**
|
|
|
|
86
|
+ * @remark :优化审核
|
|
|
|
87
|
+ * @name :processSave
|
|
|
|
88
|
+ * @author :lyh
|
|
|
|
89
|
+ * @method :post
|
|
|
|
90
|
+ * @time :2023/7/20 15:22
|
|
|
|
91
|
+ */
|
|
|
|
92
|
+ public function processSave(){
|
|
|
|
93
|
+ //优化师审核状态
|
|
|
|
94
|
+ if(isset($this->param['optimist_status']) && $this->param['optimist_mid'] == $this->manage['id']){
|
|
|
|
95
|
+ $this->param['optimist_check_time'] = date('Y-m-d H:i:s');
|
|
|
|
96
|
+ $this->fail('当前登录用户无权限');
|
|
|
|
97
|
+ }
|
|
|
|
98
|
+ //品控审核状态
|
|
|
|
99
|
+ if(isset($this->param['qa_status']) && $this->param['qa_mid'] == $this->manage['id']){
|
|
|
|
100
|
+ $this->param['qa_check_time'] = date('Y-m-d H:i:s');
|
|
|
|
101
|
+ $this->fail('当前登录用户无权限');
|
|
|
|
102
|
+ }
|
|
|
|
103
|
+ $rs = $this->model->edit($this->param,['project_id'=>$this->param['project_id']]);
|
|
|
|
104
|
+ if($rs === false){
|
|
|
|
105
|
+ $this->fail('error');
|
|
|
|
106
|
+ }
|
|
|
|
107
|
+ return $this->success();
|
|
|
|
108
|
+ }
|
|
83
|
} |
109
|
} |