Kirin 3 lat temu
rodzic
commit
12de6c4f60

+ 3 - 3
app/api/controller/trade/CashTradeController.php

@@ -116,15 +116,15 @@ class CashTradeController
                 $new[$k]['up'] = 0;
             }
         }
-        CacheService::redisHandler()->set('all_money', $new);
+        CacheService::redisHandler()->set('all_money_kp', $new);
     }
 
     public function all_money(Request $request)
     {
-        $info = CacheService::redisHandler()->get('all_money');
+        $info = CacheService::redisHandler()->get('all_money_kp');
         if (!$info) {
             $this->all_money_redis();
-            $info = CacheService::redisHandler()->get('all_money');
+            $info = CacheService::redisHandler()->get('all_money_kp');
         }
 
         foreach ($info as &$v) {

+ 2 - 2
app/api/controller/user/UserController.php

@@ -741,10 +741,10 @@ class UserController
             }
         }
 
-        $info = CacheService::redisHandler()->get('all_money');
+        $info = CacheService::redisHandler()->get('all_money_kp');
         if (!$info) {
             (new CashTradeController())->all_money_redis();
-            $info = CacheService::redisHandler()->get('all_money');
+            $info = CacheService::redisHandler()->get('all_money_kp');
         }
         foreach ($back as $k => $v) {
             foreach ($info as $vv) {