|
@@ -98,8 +98,11 @@ function subscribe_message(&$quit, &$redis, $channels)
|
|
|
$ins = Cache::getInstance('cacheredis');
|
|
|
$content = $ins->get_org('refill_channel_control_model');
|
|
|
|
|
|
- $data = json_decode($content,true);
|
|
|
- refill\RefillFactory::instance()->UpdateChctl($data);
|
|
|
+ if(empty($content)) continue;
|
|
|
+ $params = json_decode($content,true);
|
|
|
+ if(empty($params)) continue;
|
|
|
+
|
|
|
+ refill\RefillFactory::instance()->UpdateChctl($params);
|
|
|
}
|
|
|
else {
|
|
|
//Log::record("subscribe_message dont not handle mgs:{$sub_type}-{$channel}-{$type}",Log::DEBUG);
|