(app *auth.AppInfo)
| 146 | } |
| 147 | |
| 148 | func (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 | |
| 159 | func (c *QQClient) UseSignProvider(p sign.Provider) { |
| 160 | c.signProvider = p |
no test coverage detected