|
...
|
...
|
@@ -6,6 +6,7 @@ use App\Http\Logic\Aside\BaseLogic; |
|
|
|
use App\Http\Logic\Aside\Manage\ManageLogic;
|
|
|
|
use App\Models\Channel\Channel;
|
|
|
|
use App\Models\Optimize\Process;
|
|
|
|
use App\Models\Project\OnlineCheck;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -20,7 +21,7 @@ class ProcessLogic extends BaseLogic |
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
$this->param = $this->requestAll;
|
|
|
|
$this->model = new Project();
|
|
|
|
$this->model = new OnlineCheck();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -70,7 +71,7 @@ class ProcessLogic extends BaseLogic |
|
|
|
'optimize_optimist' => ManageLogic::getCacheName($item['deploy_optimize']['optimist_mid'] ?? 0), //优化师
|
|
|
|
'optimize_assist' => ManageLogic::getCacheName($item['deploy_optimize']['assist_mid'] ?? 0), //优化助理
|
|
|
|
'optimize_tech' => ManageLogic::getCacheName($item['deploy_optimize']['tech_mid'] ?? 0), //售后技术
|
|
|
|
'type' => $this->model::typeMap()[$item['type']] ?? '',
|
|
|
|
'type' => Project::typeMap()[$item['type']] ?? '',
|
|
|
|
'test_domain' => $item['deploy_build']['test_domain'] ?? 0,
|
|
|
|
'domain' => $item['deploy_optimize']['domain'] ?? 0,
|
|
|
|
'created_at' => date('Y年m月d日', strtotime($item['created_at'])),
|
|
...
|
...
|
@@ -80,4 +81,29 @@ class ProcessLogic extends BaseLogic |
|
|
|
];
|
|
|
|
return $items;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :优化审核
|
|
|
|
* @name :processSave
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/20 15:22
|
|
|
|
*/
|
|
|
|
public function processSave(){
|
|
|
|
//优化师审核状态
|
|
|
|
if(isset($this->param['optimist_status']) && $this->param['optimist_mid'] == $this->manage['id']){
|
|
|
|
$this->param['optimist_check_time'] = date('Y-m-d H:i:s');
|
|
|
|
$this->fail('当前登录用户无权限');
|
|
|
|
}
|
|
|
|
//品控审核状态
|
|
|
|
if(isset($this->param['qa_status']) && $this->param['qa_mid'] == $this->manage['id']){
|
|
|
|
$this->param['qa_check_time'] = date('Y-m-d H:i:s');
|
|
|
|
$this->fail('当前登录用户无权限');
|
|
|
|
}
|
|
|
|
$rs = $this->model->edit($this->param,['project_id'=>$this->param['project_id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|