mirror of
https://github.com/zhamao-robot/go-cqhttp-adapter-plugin.git
synced 2026-03-17 20:24:51 +08:00
Update GocqAdapter.php
他会认为非ob12都提示为ob11,实际上他可能有更多的可能
This commit is contained in:
parent
33ae4dbf82
commit
1e53aba257
@ -50,7 +50,6 @@ class GocqAdapter
|
||||
#[BindEvent(WebSocketOpenEvent::class)]
|
||||
public function handleWSReverseOpen(WebSocketOpenEvent $event): void
|
||||
{
|
||||
logger()->info('连接到 ob11');
|
||||
$request = $event->getRequest();
|
||||
// 判断是不是 Gocq 或 OneBot 11 标准的连接。OB11 标准必须带有 X-Client-Role 和 X-Self-ID 两个头。
|
||||
if ($request->getHeaderLine('X-Client-Role') === 'Universal' && $request->getHeaderLine('X-Self-ID') !== '') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user