作者 赵彬吉

update

@@ -53,7 +53,7 @@ class RemainDay extends Command @@ -53,7 +53,7 @@ class RemainDay extends Command
53 */ 53 */
54 public function handle() 54 public function handle()
55 { 55 {
56 - $list = Project::whereIn('type', ['2,3,4'])->get(); 56 + $list = Project::whereIn('type', [2,3,4])->get();
57 foreach ($list as $item){ 57 foreach ($list as $item){
58 if($item['type'] == 3){ 58 if($item['type'] == 3){
59 //排名达标天数 59 //排名达标天数
@@ -62,7 +62,7 @@ class RemainDay extends Command @@ -62,7 +62,7 @@ class RemainDay extends Command
62 }else{ 62 }else{
63 //审核上线后开始 63 //审核上线后开始
64 $check_time = OnlineCheck::where('project_id', $item['id'])->where('status', 1)->value('created_at') ?: ''; 64 $check_time = OnlineCheck::where('project_id', $item['id'])->where('status', 1)->value('created_at') ?: '';
65 - if($check_time){ 65 + if(!$check_time){
66 $remain_day = $item['deploy_build']['service_duration']; 66 $remain_day = $item['deploy_build']['service_duration'];
67 }else{ 67 }else{
68 $diff = time() - strtotime($check_time); 68 $diff = time() - strtotime($check_time);