Browse Source

会员升级

Kirin 7 months ago
parent
commit
f7136a2d4a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controller/api/v1/PublicController.php

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

@@ -73,7 +73,7 @@ class PublicController extends BaseController
     public function test()
     {
         $max_id = CacheService::get('max_id', 0);
-        $list = UserIntegral::where('type', 0)->where('status', 0)->order('add_time', 'asc')->where('id', '>', $max_id)->limit(500)->select();
+        $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);
         $service = app()->make(AwardIntegralServices::class);
         echo date('Y-m-d', $list[0]['add_time']) . '<br>';
@@ -93,7 +93,7 @@ class PublicController extends BaseController
         CacheService::set('max_id', $max_id);
         CacheService::set('last_time', $last_time);
 
-        if (count($list) < 500 && strtotime(date('Y-m-d', $last_time)) < strtotime(date('Y-m-d'))) {
+        if (count($list) < 300 && strtotime(date('Y-m-d', $last_time)) < strtotime(date('Y-m-d'))) {
             echo date('Y-m-d') . '<br>';
             $days = (strtotime(date('Y-m-d')) - strtotime(date('Y-m-d', $last_time))) / (24 * 3600);
             echo '时间间隔' . $days . '天<br>';