加密算法
timestamp:毫秒级时间戳(以北京时间正负300秒内为有效)
nonce:10位随机数,接口调用一次之后放入缓存,防止被第二次使用,20s后清空
sign:签名,对timestamp、nonce、appKey进行md5加密,md5(timestamp+nonce+appKey)
请求报文示例:
{
"id": "xxx",
"appId": "xxx",
"timestamp": "xxxxxxxxxxxxx",
"nonce": "xxxxxxxxxx",
"sign": "xxxxxxxxxxxxxx"
}
{
"id": "xxx",
"appId": "xxx",
"timestamp": "xxxxxxxxxxxxx",
"nonce": "xxxxxxxxxx",
"sign": "xxxxxxxxxxxxxx"
}
修改于 2025-03-14 03:06:30