mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化get 不带参数时的 签名问题
This commit is contained in:
parent
236c105b44
commit
00123276b7
@ -74,6 +74,9 @@ export function createSign(_reqObj) {
|
||||
if (reqInfo.endsWith('&')) {
|
||||
reqInfo = reqInfo.substr(0, reqInfo.length - 1);
|
||||
}
|
||||
if (reqInfo.endsWith('?')) {
|
||||
reqInfo = reqInfo.substr(0, reqInfo.length - 1);
|
||||
}
|
||||
} else {
|
||||
if (typeof _reqObj.data === "object") {
|
||||
reqInfo += JSON.stringify(_reqObj.data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user