stanley-king 3 rokov pred
rodič
commit
2b7f959b75

+ 2 - 12
helper/refill/RefillBase.php

@@ -302,23 +302,13 @@ class RefillBase
 
         $refill_state = false;
         $order_success = false;
-
-        $tmpnames = [];
-        foreach ($providers as $provider) {
-            $tmpnames[] = $provider->name();
-        }
-        Log::record("tmpnames=" . implode(',',$tmpnames),Log::DEBUG);
-
         $exclude_channels = util::get_exclude_channel($mchid,$mch_order,$card_type);
-        if(!empty($exclude_channels)) {
-            Log::record("exclude_channels=" . implode(',',$exclude_channels),Log::DEBUG);
-        }
+
         foreach ($providers as $provider)
         {
             $channel_name = $provider->name();
-            Log::record("select channel name = {$channel_name}",Log::DEBUG);
             if(in_array($channel_name,$exclude_channels)) {
-                Log::record("current channel in exclude",Log::DEBUG);
+                Log::record("{$channel_name} channel in exclude",Log::DEBUG);
                 continue;
             }
 

+ 1 - 2
helper/refill/policy/chctl.php

@@ -53,7 +53,7 @@ class chctl
                     $speed = $item['speed'];
 
                     $key = $this->prefix($name,$amount,$card_type,$quality);
-                    Log::record("Load: key={$key} quality={$quality} 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);
                 }
             }
@@ -75,7 +75,6 @@ class chctl
         foreach ($names as $name)
         {
             $key = $this->prefix($name,$spec,$card_type,$quality);
-            Log::record("chctl::match key={$key}",Log::DEBUG);
             if(array_key_exists($key,$this->mSpeedtable)) {
                 $ctl_items[] = $this->mSpeedtable[$key];
             }

+ 0 - 1
plot/thdf5.py

@@ -117,7 +117,6 @@ class DataTest(unittest.TestCase):
         print(paths)
 
     def test_mchplot(self):
-    # buf = dataCenter.draw_plot(start_time=1619654400, interval=900, chname='yunling', card_type=5, amount=200)
         time_stamp = int(time.time())
         buf = mchDataCenter.draw_plot(start_time=time_stamp, interval=900)
         img = Image.open(buf)