From ef388ed7781b94279bbad2615f191fa1c3bce665 Mon Sep 17 00:00:00 2001 From: WindowsSov8forUs Date: Sun, 23 Jun 2024 17:22:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Login=20=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E7=9A=84=20Features=20=E5=92=8C=20ProxyUrls=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=A2=AB=E9=94=99=E8=AF=AF=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- processor/processor.go | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/processor/processor.go b/processor/processor.go index 9ca1723..7c52f0c 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -101,10 +101,12 @@ func GetReadyBody() *operation.ReadyBody { var logins []*login.Login for platform, bot := range GetBots() { login := &login.Login{ - User: bot, - SelfId: SelfId, - Platform: platform, - Status: GetStatus(platform), + User: bot, + SelfId: SelfId, + Platform: platform, + Status: GetStatus(platform), + Features: Features(), + ProxyUrls: ProxyUrls(), } logins = append(logins, login) } @@ -177,6 +179,16 @@ func GetOpenIdData() map[string]string { return globalOpenIdMappingInstance.mapping } +// 获取平台特性 +func Features() []string { + return []string{} +} + +// 获取代理路径 +func ProxyUrls() []string { + return []string{} +} + // Server 服务端接口 type Server interface { Run() error