push them all
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
class config {
|
||||
constructor() {
|
||||
//local
|
||||
this.internalUrl = 'https://localhost:9086';
|
||||
// this.internalUrl = 'https://localhost:9086';
|
||||
|
||||
// mgm web DEV
|
||||
// this.internalUrl = 'https://localhost';
|
||||
@@ -10,7 +10,7 @@ class config {
|
||||
// this.internalUrl = 'https://47.238.46.81';
|
||||
|
||||
// MGM APP DEV
|
||||
// this.internalUrl = 'https://dlahcadev.mcmsapoc.com';
|
||||
this.internalUrl = 'https://dlahcadev.mcmsapoc.com';
|
||||
|
||||
//this.version = "beta 2.0";
|
||||
//ali ECS
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ module.exports = (vm) => {
|
||||
const clientId = uni.getStorageSync("clientId")
|
||||
config.header.Authorization = token;
|
||||
config.header.ClientId = clientId;
|
||||
// #ifdef APP-PLUS
|
||||
// #ifdef APP-PLUS || H5
|
||||
config.header.Origin = config.custom.origin;
|
||||
// #endif
|
||||
if(config.url.indexOf('refresh_token')==-1 ){
|
||||
@@ -100,7 +100,7 @@ module.exports = (vm) => {
|
||||
return data === undefined ? {} : data
|
||||
}, (error) => {
|
||||
console.log(error)
|
||||
if( error.errMsg=="request:ok") {
|
||||
if(error.errMsg=="request:ok") {
|
||||
error.errMsg= "request:fail";
|
||||
if(error.data!=undefined){
|
||||
if(error.data.message!=undefined){
|
||||
|
||||
Reference in New Issue
Block a user