From c58aff5b2a349c6b1fc8a4a3f474f7f8cc529e09 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 12 七月 2024 14:05:58 +0800 Subject: [PATCH] update 花农端首次上架 --- plugins/http.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/http.js b/plugins/http.js index 7d532e9..bbbf997 100644 --- a/plugins/http.js +++ b/plugins/http.js @@ -70,7 +70,7 @@ code: 0, msg: '' }) - } else if (res.data.code === '3000') { + } else if (res.data.code === '3000'||res.data.code === '30000') { if (Array.isArray(res.data.data)) { if (res.data.data.length > 0 && res.data.data[0] .errorMessage) { @@ -86,7 +86,7 @@ code: parseInt(res.data.code), msg: res.data.data }) - } else if (res.data.code === '4000') { + } else if (res.data.code === '4000'||res.data.code === '40000') { message.showToast('系统异常') } else { if (res.data.data && typeof res.data.data === 'string') { @@ -191,7 +191,7 @@ let header = { Authorization: token ? `Bearer ${token}` : null, } - var url = environments.httpBaseUri + '/api/upload/file' + var url = environments.httpBaseUri + '/api/upload/oss/file' if (environments.type == 'prod') { //需要拼接 var year = utils.toYear(new Date()) -- Gitblit v1.9.3