Compare commits

...

2 Commits

Author SHA1 Message Date
风如歌
1a8846c62b
!199 fix: 合一短信HMAC模式签名错误
Merge pull request !199 from Gerrit1999/dev-3.0.x
2025-08-30 05:23:31 +00:00
Gerrit1999
fac931c1fe fix: 合一短信HMAC模式签名错误 2025-06-14 07:11:44 +08:00

View File

@ -92,6 +92,8 @@ public class UniClient {
url = this.endpoint + "?action=" + action + "&accessKeyId=" + this.accessKeyId;
} else {
Map<String, Object> d = new HashMap<>();
d.put("action", action);
d.put("accessKeyId", this.accessKeyId);
Map<String, Object> signed = sign(d);
url = this.endpoint + "?action=" + action + "&accessKeyId=" + this.accessKeyId + "&algorithm=" + signed.get("algorithm") +
"&timestamp=" + signed.get("timestamp") + "&nonce=" + signed.get("nonce") + "&signature=" + signed.get("signature");