增加二维码登录

This commit is contained in:
binaryify
2020-12-31 15:26:18 +08:00
parent bf50fa65eb
commit 77775b25f5
9 changed files with 195 additions and 21 deletions
+5 -1
View File
@@ -153,7 +153,11 @@ const createRequest = (method, url, data, options) => {
try {
answer.body = body
answer.status = answer.body.code || res.status
if (answer.body.code === 502) {
if (
[201, 302, 400, 502, 800, 801, 802, 803].indexOf(answer.body.code) >
-1
) {
// 特殊状态码
answer.status = 200
}
} catch (e) {