joe 3 rokov pred
rodič
commit
23d34104fb
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      tw/command/Maintain.php

+ 2 - 2
tw/command/Maintain.php

@@ -281,13 +281,13 @@ class Maintain extends Command
         // 下架
         $ids = [];
         foreach ($products as $p) {
-            array_push($ids, $p['id']);
+            $ids[] = $p['id'];
         }
         $ret = Storeproduct::where('id', 'in', $ids)->update([
             'is_show' => 0,
         ]);
         // 记录日志
-        warnlog("auto off-shelves executed: $ret" . json_encode($ids));
+        warnlog("auto off-shelves executed: days=$days, ts=$days_ago, ret=$ret, ids=" . json_encode($ids));
     }
 
     /**