MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / UseVersion

Method UseVersion

client/base.go:148–157  ·  view source on GitHub ↗
(app *auth.AppInfo)

Source from the content-addressed store, hash-verified

146}
147
148func (c *QQClient) UseVersion(app *auth.AppInfo) {
149 c.transport.Version = app
150 c.highwaySession.AppID = uint32(app.AppID)
151 c.highwaySession.SubAppID = uint32(app.SubAppID)
152 c.UA = "LagrangeGo qq/" + app.PackageSign
153 if c.signProvider == nil {
154 c.signProvider = sign.NewSigner(c.debug)
155 }
156 c.signProvider.SetAppInfo(app)
157}
158
159func (c *QQClient) UseSignProvider(p sign.Provider) {
160 c.signProvider = p

Callers 1

mainFunction · 0.80

Calls 2

NewSignerFunction · 0.92
SetAppInfoMethod · 0.65

Tested by

no test coverage detected