wesmiler 2 tuần trước cách đây
mục cha
commit
203a2373eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Services/Common/StoreCategoryService.php

+ 1 - 1
app/Services/Common/StoreCategoryService.php

@@ -194,7 +194,7 @@ class StoreCategoryService extends BaseService
             'mark' => 0,
             'update_time' => time()
         ]);
-
+        $this->model->where('mark', 0)->where('update_time','<=', time() - 600)->delete();
         return message("删除成功", true);
     }