|
@@ -61,7 +61,6 @@ class StatesHelper
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
static public function onSearcher($states,$msg)
|
|
static public function onSearcher($states,$msg)
|
|
{
|
|
{
|
|
$type = $msg['type'];
|
|
$type = $msg['type'];
|
|
@@ -112,7 +111,7 @@ class StatesHelper
|
|
|
|
|
|
function handler_redis($redis, $chan, $msg)
|
|
function handler_redis($redis, $chan, $msg)
|
|
{
|
|
{
|
|
- if (UGC_SUBSCRIBER_PROC)
|
|
|
|
|
|
+ if (defined(UGC_SUBSCRIBER_PROC) && UGC_SUBSCRIBER_PROC == true)
|
|
{
|
|
{
|
|
if($chan == 'special') {
|
|
if($chan == 'special') {
|
|
UgcHandler::onSpecial($msg);
|
|
UgcHandler::onSpecial($msg);
|
|
@@ -120,11 +119,11 @@ function handler_redis($redis, $chan, $msg)
|
|
elseif($chan == 'fellow') {
|
|
elseif($chan == 'fellow') {
|
|
UgcHandler::onFellow($msg);
|
|
UgcHandler::onFellow($msg);
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
|
|
+ Log::record("message: {$chan} -- {$msg}",Log::DEBUG);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- else {
|
|
|
|
- Log::record("message: {$chan} -- {$msg}",Log::INFO);
|
|
|
|
|
|
+ else
|
|
|
|
+ {
|
|
$cur_trd = Thread::getCurrentThread();
|
|
$cur_trd = Thread::getCurrentThread();
|
|
$cur_trd->dispatch($chan,$msg);
|
|
$cur_trd->dispatch($chan,$msg);
|
|
}
|
|
}
|