()
| 23 | ) |
| 24 | |
| 25 | func clientSuffix() map[string]string { |
| 26 | rand := random.Rand |
| 27 | return map[string]string{ |
| 28 | "clientType": PC, |
| 29 | "version": VERSION, |
| 30 | "channelId": CHANNEL_ID, |
| 31 | "rand": fmt.Sprintf("%d_%d", rand.Int63n(1e5), rand.Int63n(1e10)), |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // 带params的SignatureOfHmac HMAC签名 |
| 36 | func signatureOfHmac(sessionSecret, sessionKey, operate, fullUrl, dateOfGmt, param string) string { |
no outgoing calls
no test coverage detected