Kirin hace 1 año
padre
commit
052acc2e94
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);