Ver código fonte

provider_ctl

xiaoyu 2 anos atrás
pai
commit
69e1ec446d
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      admin/control/provider_ctl.php

+ 2 - 2
admin/control/provider_ctl.php

@@ -62,9 +62,9 @@ class provider_ctlControl extends SystemControl
                 $speed_limit = unserialize($speed_limit['data']);
             }
             $channel_ctl_model_body = rkcache('refill_channel_control_model');
-            $str = json_encode($channel_ctl_model_body);
+            $str = json_decode($channel_ctl_model_body);
             Log::record("channel_control_model:{$str}");
-            $channel_ctl_model = json_decode(json_decode($channel_ctl_model_body), true);
+            $channel_ctl_model = json_decode($str, true);
             if(empty($channel_ctl_model)) $channel_ctl_model = [];
 
             $initialiser = function ($provider) {