浏览代码

add storeage limit

stanley-king 4 年之前
父节点
当前提交
94861d7e46
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 = $old['data'];
+        $old = empty($old) ? "" : $old['data'];
+
+        ksort($abilitys);
         $new = serialize($abilitys);
         if($new != $old) {
             wcache("refill_able" , ['data' => $new] , 'merchant-');