作者 lyh

gx

@@ -57,7 +57,7 @@ class Count extends Command @@ -57,7 +57,7 @@ class Count extends Command
57 //服务达标天数 57 //服务达标天数
58 $arr['compliance_day'] = $this->compliance_day($yesterday); 58 $arr['compliance_day'] = $this->compliance_day($yesterday);
59 //剩余服务时常 59 //剩余服务时常
60 - $arr['service_day'] = (int)$v['service_duration']; 60 + $arr['service_day'] = ((int)$v['service_duration'] - (int)$arr['compliance_day']);
61 //项目id 61 //项目id
62 $arr['project_id'] = $v['project_id']; 62 $arr['project_id'] = $v['project_id'];
63 $arr['created_at'] = date('Y-m-d H:i:s'); 63 $arr['created_at'] = date('Y-m-d H:i:s');
@@ -44,7 +44,6 @@ class RenewProjectController extends BaseController @@ -44,7 +44,6 @@ class RenewProjectController extends BaseController
44 $map[] = [$this->param['search_type'], 'like', "%{$this->param['search']}%"]; 44 $map[] = [$this->param['search_type'], 'like', "%{$this->param['search']}%"];
45 } 45 }
46 } 46 }
47 -  
48 $data = $logic->getList($map, $sort,['*'],$this->row); 47 $data = $logic->getList($map, $sort,['*'],$this->row);
49 $this->response('success',Code::SUCCESS,$data); 48 $this->response('success',Code::SUCCESS,$data);
50 } 49 }
@@ -138,8 +138,8 @@ class ProjectLogic extends BaseLogic @@ -138,8 +138,8 @@ class ProjectLogic extends BaseLogic
138 if(!empty($param['deploy_build']['test_domain'])) unset($param['deploy_build']['test_domain']); 138 if(!empty($param['deploy_build']['test_domain'])) unset($param['deploy_build']['test_domain']);
139 if(!empty($param['deploy_build']['plan'])) unset($param['deploy_build']['plan']); 139 if(!empty($param['deploy_build']['plan'])) unset($param['deploy_build']['plan']);
140 if(!empty($param['deploy_optimize']['api_no'])) unset($param['deploy_optimize']['api_no']); 140 if(!empty($param['deploy_optimize']['api_no'])) unset($param['deploy_optimize']['api_no']);
141 - if($param['type'] == 6){  
142 - $param['extend_type'] == 6; 141 + if($param['type'] == 5){
  142 + $param['extend_type'] == 5;
143 unset($param['type']); 143 unset($param['type']);
144 } 144 }
145 $res = parent::save($param); 145 $res = parent::save($param);
@@ -57,12 +57,12 @@ class ServiceLogic extends BaseLogic @@ -57,12 +57,12 @@ class ServiceLogic extends BaseLogic
57 */ 57 */
58 public function serviceSave(){ 58 public function serviceSave(){
59 //删除以前的配置 59 //删除以前的配置
60 -// try { 60 + try {
61 $this->model->del(['type'=>1]); 61 $this->model->del(['type'=>1]);
62 $this->model->insert($this->param['data']); 62 $this->model->insert($this->param['data']);
63 -// }catch (\Exception $e){  
64 -// $this->fail('error');  
65 -// } 63 + }catch (\Exception $e){
  64 + $this->fail('error');
  65 + }
66 return $this->success(); 66 return $this->success();
67 } 67 }
68 68
@@ -45,10 +45,9 @@ class Project extends Base @@ -45,10 +45,9 @@ class Project extends Base
45 1 => '建站进程中', 45 1 => '建站进程中',
46 2 => '已完成–推广进程中', 46 2 => '已完成–推广进程中',
47 3 => '已完成-建站用户', 47 3 => '已完成-建站用户',
48 - 4 => '续费记录单',  
49 - 5 => '推广续网站',  
50 - 6 => '未续费项目',  
51 - 7 => '特殊推广项目' 48 + 4 => '推广续网站',
  49 + 5 => '未续费项目',
  50 + 6 => '特殊推广项目'
52 ]; 51 ];
53 } 52 }
54 53