Skip to content

Commit c1bb6fe

Browse files
committed
修复新版force_client_id不生效的bug
1 parent e6fb1ec commit c1bb6fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

php/SocketLog.class.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,16 +508,19 @@ public function __destruct()
508508
);
509509

510510
$tabid=self::getClientArg('tabid');
511-
$client_id=self::getClientArg('client_id');
512-
if(!$client_id)
511+
if(!$client_id=self::getClientArg('client_id'))
513512
{
514513
$client_id='';
515514
}
515+
if($force_client_id=self::getConfig('force_client_id'))
516+
{
517+
$client_id=$force_client_id;
518+
}
516519
$logs=array(
517520
'tabid'=>$tabid,
518521
'client_id'=>$client_id,
519522
'logs'=>self::$logs,
520-
'force_client_id'=>self::getConfig('force_client_id'),
523+
'force_client_id'=>$force_client_id,
521524
);
522525
$msg=@json_encode($logs);
523526
$address='/'.$client_id; //将client_id作为地址, server端通过地址判断将日志发布给谁

0 commit comments

Comments
 (0)