作者 lyh

gx

@@ -68,6 +68,11 @@ class RenewLogic extends BaseLogic @@ -68,6 +68,11 @@ class RenewLogic extends BaseLogic
68 * @time :2023/9/19 10:21 68 * @time :2023/9/19 10:21
69 */ 69 */
70 public function editProjectRenew(){ 70 public function editProjectRenew(){
  71 + if($this->param['renew_id'] == 0){
  72 + $info = [
  73 + 'api_no'=>0,
  74 + ];
  75 + }else{
71 //获取续费单详情 76 //获取续费单详情
72 $info = $this->model->read(['id'=>$this->param['renew_id']]); 77 $info = $this->model->read(['id'=>$this->param['renew_id']]);
73 if($info === false){ 78 if($info === false){
@@ -76,6 +81,7 @@ class RenewLogic extends BaseLogic @@ -76,6 +81,7 @@ class RenewLogic extends BaseLogic
76 if($info['project_id'] != 0){ 81 if($info['project_id'] != 0){
77 $this->fail('当前续费单已关联项目,请重新选择'); 82 $this->fail('当前续费单已关联项目,请重新选择');
78 } 83 }
  84 + }
79 DB::beginTransaction(); 85 DB::beginTransaction();
80 try { 86 try {
81 $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]); 87 $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]);