Kirin преди 1 година
родител
ревизия
052acc2e94
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      app/controller/api/v1/PublicController.php

+ 2 - 0
app/controller/api/v1/PublicController.php

@@ -72,6 +72,8 @@ class PublicController extends BaseController
 
     public function test()
     {
+        CacheService::set('max_id', 0);
+        CacheService::set('last_time', 0);
         $max_id = CacheService::get('max_id', 0);
         $list = UserIntegral::where('type', 0)->where('status', 0)->order('id asc')->where('id', '>', $max_id)->limit(300)->select();
         $last_time = CacheService::get('last_time', 0);