소스 검색

add prod() log

joe 3 년 전
부모
커밋
23d34104fb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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));
     }
 
     /**