作者 lyh

gx

@@ -202,7 +202,7 @@ class SyncProject extends Command @@ -202,7 +202,7 @@ class SyncProject extends Command
202 'is_upgrade'=>$is_update, 202 'is_upgrade'=>$is_update,
203 ], 203 ],
204 'deploy_build' => [ 204 'deploy_build' => [
205 - 'service_duration' => $param['years'], 205 + 'service_duration' => $param['years'] ?? 0,
206 'plan' => $this->versionData($param['plan_marketing']), 206 'plan' => $this->versionData($param['plan_marketing']),
207 'login_mobile'=>$param['principal_mobile'] 207 'login_mobile'=>$param['principal_mobile']
208 ], 208 ],
@@ -353,7 +353,6 @@ class SyncProject extends Command @@ -353,7 +353,6 @@ class SyncProject extends Command
353 if($info !== false){ 353 if($info !== false){
354 $deployBuildModel->edit($param,['id'=>$info['id']]); 354 $deployBuildModel->edit($param,['id'=>$info['id']]);
355 }else{ 355 }else{
356 - $param['service_duration'] = isset($param['service_duration']) ? $param['service_duration'] : 0;  
357 $deployBuildModel->add($param); 356 $deployBuildModel->add($param);
358 } 357 }
359 } 358 }