作者 赵彬吉

update

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