Browse Source

add storeage limit

stanley-king 4 years ago
parent
commit
94861d7e46
1 changed files with 3 additions and 1 deletions
  1. 3 1
      crontab/control/minutes.php

+ 3 - 1
crontab/control/minutes.php

@@ -149,7 +149,9 @@ class minutesControl extends BaseCronControl
         }
         }
 
 
         $old = rcache("refill_able",'merchant-');
         $old = rcache("refill_able",'merchant-');
-        $old = $old['data'];
+        $old = empty($old) ? "" : $old['data'];
+
+        ksort($abilitys);
         $new = serialize($abilitys);
         $new = serialize($abilitys);
         if($new != $old) {
         if($new != $old) {
             wcache("refill_able" , ['data' => $new] , 'merchant-');
             wcache("refill_able" , ['data' => $new] , 'merchant-');