stanley-king 3 år sedan
förälder
incheckning
782954476b
3 ändrade filer med 13 tillägg och 4 borttagningar
  1. 4 4
      helper/refill/policy/chctl.php
  2. 2 0
      helper/refill/policy/quaility.php
  3. 7 0
      test/TestRedis.php

+ 4 - 4
helper/refill/policy/chctl.php

@@ -18,9 +18,9 @@ class chctl
         ['quality'=> 2,'name' => 'channel-ctl-phone-fast-limit'],
         ['quality'=> 3,'name' => 'channel-ctl-phone-card-limit'],
         ['quality'=> 4,'name' => 'channel-ctl-phone-third-limit'],
-        ['quality'=> 5,'name' => 'channel-ctl-phone-slow-limit'],
-        ['quality'=> 6,'name' => 'channel-ctl-phone-slow6-limit'],
-        ['quality'=> 7,'name' => 'channel-ctl-phone-slow2-limit'],
+        ['quality'=> 5,'name' => 'channel-ctl-phone-slow-limit'], //24 hour
+        ['quality'=> 6,'name' => 'channel-ctl-phone-slow6-limit'],//6 hour
+        ['quality'=> 7,'name' => 'channel-ctl-phone-slow2-limit'] //2 hour
     ];
 
     public function __construct()
@@ -53,7 +53,7 @@ class chctl
                     $speed = $item['speed'];
 
                     $key = $this->prefix($name,$amount,$card_type,$quality);
-                    Log::record("Load: key={$key} name={$name} amount={$amount} type={$card_type} opened={$opened} sort={$sort} speed={$speed}",Log::DEBUG);
+                    Log::record("Load: key={$key} quality={$quality} name={$name} amount={$amount} type={$card_type} opened={$opened} sort={$sort} speed={$speed}",Log::DEBUG);
                     $this->mSpeedtable[$key] = new ctl_item($name,$card_type,$amount,$speed,$sort,0,$opened,$quality);
                 }
             }

+ 2 - 0
helper/refill/policy/quaility.php

@@ -50,6 +50,8 @@ class Quality
         }
     }
 
+
+
     private function mobile_quality($mchid,$quality,$times,$used_time): array
     {
         if($quality == 0)

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 7 - 0
test/TestRedis.php