feat:待签名字符串
This commit is contained in:
@@ -46,7 +46,7 @@ public class OpenSignatureUtil {
|
|||||||
// 3.2 添加固定参数(不参与排序)
|
// 3.2 添加固定参数(不参与排序)
|
||||||
sb.append("appkey=").append(appKey)
|
sb.append("appkey=").append(appKey)
|
||||||
.append("×tamp=").append(timestamp);
|
.append("×tamp=").append(timestamp);
|
||||||
|
log.info("待签名字符串:{}", sb);
|
||||||
// 4. 生成签名
|
// 4. 生成签名
|
||||||
return hmacSha256(sb.toString(), appSecret);
|
return hmacSha256(sb.toString(), appSecret);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user