|
...
|
...
|
@@ -35,7 +35,7 @@ class RemainDay extends Command |
|
|
|
* 按照达标天数收费的项目(白帽)
|
|
|
|
*/
|
|
|
|
protected $bm_projectId = [
|
|
|
|
4247,4299,4310,4215,4038,4084,4148
|
|
|
|
4247,4299,4310,4215,4038,4084,4148,4178
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -83,7 +83,7 @@ class RemainDay extends Command |
|
|
|
* @time :2025/4/2 10:48
|
|
|
|
*/
|
|
|
|
public function saveRemainDay(){
|
|
|
|
$list = $this->project->list(['extend_type'=>Project::TYPE_ZERO,'type'=>['in',[Project::TYPE_TWO,Project::TYPE_THREE,Project::TYPE_FOUR,Project::TYPE_SIX]]],'id',['id','type','uptime','remain_day','is_remain_today','pause_days','finish_remain_day','bm_finish_remain_day']);
|
|
|
|
$list = $this->project->list(['extend_type'=>Project::TYPE_ZERO,'type'=>['in',[Project::TYPE_TWO,Project::TYPE_THREE,Project::TYPE_FOUR,Project::TYPE_SIX]]],'id',['id','type','level','uptime','remain_day','is_remain_today','pause_days','finish_remain_day','bm_finish_remain_day']);
|
|
|
|
foreach ($list as $item){
|
|
|
|
$deploy_build = $this->deployBuild->read(['project_id'=>$item['id']],['service_duration','seo_service_duration','plan','seo_plan']);
|
|
|
|
echo 'start->项目id:' . $item['id'] . '执行时间:'. date('Y-m-d H:i:s') . PHP_EOL;
|
|
...
|
...
|
@@ -120,7 +120,7 @@ class RemainDay extends Command |
|
|
|
//白帽版本的系统
|
|
|
|
if($deploy_build['seo_plan'] == 1){
|
|
|
|
if($deploy_build['seo_service_duration'] != 0){
|
|
|
|
if(in_array($item['id'],$this->bm_projectId)){
|
|
|
|
if(in_array($item['id'],$this->bm_projectId) || (strpos($item['level'], '19') !== false)){
|
|
|
|
$compliance_day = (int)$item['bm_finish_remain_day'];
|
|
|
|
$seo_remain_day = $deploy_build['seo_service_duration'] - (int)$item['bm_finish_remain_day'];
|
|
|
|
}else{
|
...
|
...
|
|