优化get 不带参数时的 签名问题

This commit is contained in:
wuxw 2024-03-06 13:38:21 +08:00
parent 236c105b44
commit 00123276b7

View File

@ -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);