as: Save deck info

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-05 23:58:29 +08:00
parent 6f06b72585
commit 1508cf7812
7 changed files with 10444 additions and 9991 deletions
+6
View File
@@ -8,6 +8,12 @@ import (
"time"
)
func CheckErr(err error) {
if err != nil {
panic(err)
}
}
func SignResp(ep, body, key string) (resp string) {
signBody := fmt.Sprintf("%d,\"%s\",0,%s", time.Now().UnixMilli(), config.MasterVersion, body)
sign := encrypt.HMAC_SHA1_Encrypt([]byte(ep+" "+signBody), []byte(key))