From e7b0b34176549cfec809c6b89c4cab0999e488b9 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 28 三月 2023 16:40:56 +0800 Subject: [PATCH] 修改大部分问题 --- api/index.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/api/index.js b/api/index.js index 87ad6ff..3d4d824 100644 --- a/api/index.js +++ b/api/index.js @@ -11,6 +11,9 @@ }, jsonPOST: { "Content-type": 'application/json' + }, + utfPOSt: { + 'content-type': 'application/x-www-form-urlencoded;charset=utf-8' } } @@ -46,6 +49,9 @@ } else if (urlType == 'json') { opt.header = typeObj['jsonPOST']; opt.data = params; + } else if (urlType == 'utf8') { + opt.header = typeObj['utfPOSt']; + opt.data = params; } else { opt.data = params; opt.header = typeObj['headerPOST']; -- Gitblit v1.9.1