chore:1.0.17

This commit is contained in:
曾文豪
2025-08-28 13:51:55 +08:00
parent a7c3c76dd2
commit eb89dd4a48
3 changed files with 14 additions and 9 deletions

View File

@@ -77,13 +77,15 @@ const dealParamsBody = (options) => {
* @returns {Promise<<any>>}
*/
async function req(url, options) {
let {prefix} = GlobalConfig.getConfig();
let {prefix, urlDeal} = GlobalConfig.getConfig();
if (typeof prefix === "function") {
prefix = prefix(url);
}
if (prefix) {
url = prefix + url;
}
url = urlDeal(url)
return new Promise((resolve, reject) => {
request(url, {
...dealParamsBody(options),