We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6fb1ec commit c1bb6feCopy full SHA for c1bb6fe
php/SocketLog.class.php
@@ -508,16 +508,19 @@ public function __destruct()
508
);
509
510
$tabid=self::getClientArg('tabid');
511
- $client_id=self::getClientArg('client_id');
512
- if(!$client_id)
+ if(!$client_id=self::getClientArg('client_id'))
513
{
514
$client_id='';
515
}
+ if($force_client_id=self::getConfig('force_client_id'))
516
+ {
517
+ $client_id=$force_client_id;
518
+ }
519
$logs=array(
520
'tabid'=>$tabid,
521
'client_id'=>$client_id,
522
'logs'=>self::$logs,
- 'force_client_id'=>self::getConfig('force_client_id'),
523
+ 'force_client_id'=>$force_client_id,
524
525
$msg=@json_encode($logs);
526
$address='/'.$client_id; //将client_id作为地址, server端通过地址判断将日志发布给谁
0 commit comments