作者 李宇航

合并分支 'lyh-server' 到 'master'

更新项目白帽系统剩余服务时常



查看合并请求 !2419
@@ -121,6 +121,7 @@ class RemainDay extends Command @@ -121,6 +121,7 @@ class RemainDay extends Command
121 if($deploy_build['seo_plan'] == 1){ 121 if($deploy_build['seo_plan'] == 1){
122 if($deploy_build['seo_service_duration'] != 0){ 122 if($deploy_build['seo_service_duration'] != 0){
123 if(in_array($item['id'],$this->bm_projectId)){ 123 if(in_array($item['id'],$this->bm_projectId)){
  124 + $compliance_day = (int)$item['bm_finish_remain_day'];
124 $seo_remain_day = $deploy_build['seo_service_duration'] - (int)$item['bm_finish_remain_day']; 125 $seo_remain_day = $deploy_build['seo_service_duration'] - (int)$item['bm_finish_remain_day'];
125 }else{ 126 }else{
126 //按自然日统计 127 //按自然日统计
@@ -133,7 +134,7 @@ class RemainDay extends Command @@ -133,7 +134,7 @@ class RemainDay extends Command
133 $this->project->edit(['seo_remain_day'=>$seo_remain_day,'bm_finish_remain_day'=>$compliance_day ?? 0],['id'=>$item['id']]); 134 $this->project->edit(['seo_remain_day'=>$seo_remain_day,'bm_finish_remain_day'=>$compliance_day ?? 0],['id'=>$item['id']]);
134 }else{ 135 }else{
135 //同时包括白帽版本+默认版本的项目 136 //同时包括白帽版本+默认版本的项目
136 - $this->project->edit(['seo_remain_day'=>$seo_remain_day],['id'=>$item['id']]); 137 + $this->project->edit(['seo_remain_day'=>$seo_remain_day,'bm_finish_remain_day'=>$compliance_day ?? 0],['id'=>$item['id']]);
137 } 138 }
138 } 139 }
139 } 140 }
@@ -90,7 +90,6 @@ class GeoQuestionResLogic extends BaseLogic @@ -90,7 +90,6 @@ class GeoQuestionResLogic extends BaseLogic
90 $keywordsTotalCount += count($item['keywords'] ?? []); 90 $keywordsTotalCount += count($item['keywords'] ?? []);
91 $urlTotalCount += count($item['url'] ?? []); 91 $urlTotalCount += count($item['url'] ?? []);
92 } 92 }
93 - $keywordUrlCount = 0;  
94 $keywordArr = []; 93 $keywordArr = [];
95 $questionResModel = new GeoQuestionLog(); 94 $questionResModel = new GeoQuestionLog();
96 $resList = $questionResModel->list(['project_id'=>$this->user['project_id']],['keywords','url','keywords_num','url_num']); 95 $resList = $questionResModel->list(['project_id'=>$this->user['project_id']],['keywords','url','keywords_num','url_num']);