Skip to content

Commit

Permalink
fix: 修复 Login 对象的 Features 和 ProxyUrls 字段被错误赋值的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Jun 23, 2024
1 parent d64c25c commit ef388ed
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ef388ed

Please sign in to comment.