Prechádzať zdrojové kódy

修改团订单过期

jun 2 týždňov pred
rodič
commit
d7d034b01b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/Console/Commands/Regiment.php

+ 1 - 1
app/Console/Commands/Regiment.php

@@ -107,7 +107,7 @@ class Regiment extends Command
         }
 
         //团过期
-        $regimentList   =   RegimentModel::query()->where([['status','=',1],['end_time','<=',$time]])->get();
+        $regimentList   =   RegimentModel::query()->where([['status','=',0],['end_time','<=',$time]])->get();
         if ($regimentList){
             foreach ($regimentList as $v){
                 $activeList = $Model->query()->where('id','=',$v['active_id'])->first();