From cc74bf4ad3707603c5049483ac01662632349da0 Mon Sep 17 00:00:00 2001 From: sin-ning Date: Tue, 14 Apr 2020 13:55:12 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=EF=BC=9A=E5=8E=BB=E6=8E=89=20=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-web/src/config/request.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mobile-web/src/config/request.js b/mobile-web/src/config/request.js index 9d92692e..59d4329c 100644 --- a/mobile-web/src/config/request.js +++ b/mobile-web/src/config/request.js @@ -37,27 +37,27 @@ const serviceRouter = function(requestUrl) { const configProd = { '/order-api': { prefix: '/order-api', - target: 'http://api.shop.iocoder.cn:18088/order-api', + target: 'http://api.shop.iocoder.cn/order-api', }, '/user-api': { prefix: '/user-api', - target: 'http://api.shop.iocoder.cn:18099/user-api', + target: 'http://api.shop.iocoder.cn/user-api', }, '/product-api': { prefix: '/product-api', - target: 'http://api.shop.iocoder.cn:18099/product-api', + target: 'http://api.shop.iocoder.cn/product-api', }, '/promotion-api': { prefix: '/promotion-api', - target: 'http://api.shop.iocoder.cn:18099/promotion-api', + target: 'http://api.shop.iocoder.cn/promotion-api', }, '/pay-api': { prefix: '/pay-api', - target: 'http://api.shop.iocoder.cn:18099/pay-api', + target: 'http://api.shop.iocoder.cn/pay-api', }, '/search-api': { prefix: '/search-api', - target: 'http://api.shop.iocoder.cn:18099/search-api', + target: 'http://api.shop.iocoder.cn/search-api', }, }; @@ -230,10 +230,10 @@ service.interceptors.response.use( // TODO token 过期 // TODO 需要拿 refresh token 置换 if (code === 1002001011 // 访问令牌不存在 - || code === 1002001013 // 访问令牌已失效 - || code === 1002001017 // 刷新令牌不存在 - || code === 1002001018 // 刷新令牌已过期 - || code === 1002001019) { // 刷新令牌已失效 + || code === 1002001013 // 访问令牌已失效 + || code === 1002001017 // 刷新令牌不存在 + || code === 1002001018 // 刷新令牌已过期 + || code === 1002001019) { // 刷新令牌已失效 Dialog.confirm({ title: '系统提示', message: res.message,