rabin 2 years ago
parent
commit
4fc6d2a754
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/shop/lib/Cron.php

+ 3 - 0
app/shop/lib/Cron.php

@@ -33,6 +33,9 @@ class Cron
                 if ($test == 1) {
                 if ($test == 1) {
                     print_r($data);die;
                     print_r($data);die;
                 }
                 }
+                if ($data <= 0) {
+                    continue;
+                }
                 $update = array();
                 $update = array();
                 $update['shop_id'] = $v['id'];
                 $update['shop_id'] = $v['id'];
                 $update['clear'] = true;
                 $update['clear'] = true;