|
...
|
...
|
@@ -68,11 +68,7 @@ class RenewLogic extends BaseLogic |
|
|
|
* @time :2023/9/19 10:21
|
|
|
|
*/
|
|
|
|
public function editProjectRenew(){
|
|
|
|
if($this->param['renew_id'] == 0){
|
|
|
|
$info = [
|
|
|
|
'api_no'=>0,
|
|
|
|
];
|
|
|
|
}else{
|
|
|
|
if($this->param['renew_id'] != 0){
|
|
|
|
//获取续费单详情
|
|
|
|
$info = $this->model->read(['id'=>$this->param['renew_id']]);
|
|
|
|
if($info === false){
|
|
...
|
...
|
@@ -86,7 +82,7 @@ class RenewLogic extends BaseLogic |
|
|
|
try {
|
|
|
|
$this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]);
|
|
|
|
$param = $this->param;
|
|
|
|
$param['api_no'] = $info['api_no'];
|
|
|
|
$param['api_no'] = $info['api_no'] ?? 0;
|
|
|
|
$this->saveLog($param);
|
|
|
|
$this->updateProject($this->param['id'],$this->param['type']);
|
|
|
|
$this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']);
|
...
|
...
|
|