新增充值的修改
This commit is contained in:
@@ -45,8 +45,8 @@ export function getConfigByEnv() {
|
||||
switch (envVersion) {
|
||||
// 开发版
|
||||
case 'develop':
|
||||
// api = "http://localhost:8000"
|
||||
api = "http://127.0.0.1:4523/m1/4143821-0-default"
|
||||
api = "http://localhost:8000"
|
||||
// api = "http://127.0.0.1:4523/m1/4143821-0-default"
|
||||
break;
|
||||
// 体验版
|
||||
case 'trial':
|
||||
|
@@ -83,12 +83,16 @@ const parseResponse = function (response) {
|
||||
return
|
||||
}
|
||||
const { statusCode } = response;
|
||||
console.log('response', response)
|
||||
if (statusCode === 401) {
|
||||
wx.redirectTo({
|
||||
url: '/pages/login/index',
|
||||
})
|
||||
return { code: 401, message: '未登录状态' }
|
||||
}
|
||||
if (statusCode === 403) {
|
||||
return { code: 403, message: "非法访问" }
|
||||
}
|
||||
if (statusCode === 404) {
|
||||
return { code: 404, message: "服务故障" }
|
||||
}
|
||||
|
Reference in New Issue
Block a user