From c91be493de9db13fc0e7cebeafcf6678592987ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E6=98=93=E5=A7=90QwQ?= <45892418+SocialSisterYi@users.noreply.github.com> Date: Tue, 20 Sep 2022 22:50:05 +0800 Subject: [PATCH] fix typo --- other/API_sign.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/other/API_sign.md b/other/API_sign.md index e4f456c..781ef9f 100644 --- a/other/API_sign.md +++ b/other/API_sign.md @@ -10,12 +10,12 @@ **appkey与appsec一一对应** -- [API 签名的计算方式](#API 签名的计算方式) -- [已知的 APPKey](#已知的 APPKey) +- [API签名的计算方式](#API签名的计算方式) +- [已知的APPKey](#已知的APPKey) --- -## API 签名的计算方式 +## API签名的计算方式 首先为参数中添加`appkey`字段,然后按照参数的 key 重新排序,再将重排序后的参数使用 url query 格式序列化拼接与该 appkey 相对应的 appsec (盐值) 进行**md5 hash计算**(32位小写),该 hash 便是 API 签名 @@ -58,7 +58,7 @@ print(query) appkey=1d8b6e7d45233436&id=114514&str=1919810&test=%E3%81%84%E3%81%84%E3%82%88%EF%BC%8C%E3%81%93%E3%81%84%E3%82%88&sign=01479cf20504d865519ac50f33ba3a7d ``` -## 已知的 APPKey +## 已知的APPKey | appkey | appsec(sign盐值) | 平台 | 应用 | 备注 | | ---------------- | -------------------------------- | ---- | -------- | -------- |