|
@@ -66,7 +66,7 @@ starter.run(function ($ionicPlatform, $rootScope, $http, formatFilter, $q, $cord
|
|
|
if (global.user && global.user.token) {
|
|
|
usergot(global.user, deferred)
|
|
|
} else if (ionic.Platform.platform() == 'win32' || ionic.Platform.platform() == 'linux') {
|
|
|
- $http.post(formatFilter('{0}authcheck/', "http://192.168.1.5:7000/api/"), "imid=mlCQkcg7j&password=31003100", {
|
|
|
+ $http.post(formatFilter('{0}authcheck/', "http://srv.linkerplus.com/api/"), "imid=zPayHMi6s&password=123456", {
|
|
|
headers: {
|
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
}
|
|
@@ -96,7 +96,7 @@ starter.run(function ($ionicPlatform, $rootScope, $http, formatFilter, $q, $cord
|
|
|
if (data.cfg && (ionic.Platform.platform() == "ios" || ionic.Platform.platform() == 'android')) {
|
|
|
global.api = data.cfg.api;
|
|
|
} else {
|
|
|
- global.api = "http://192.168.1.5:7000";
|
|
|
+ global.api = "http://srv.linkerplus.com";
|
|
|
}
|
|
|
deferred.resolve(data);
|
|
|
console.warn(JSON.stringify(global.user));
|
|
@@ -245,7 +245,7 @@ starter.run(function ($ionicPlatform, $rootScope, $http, formatFilter, $q, $cord
|
|
|
global.refresh = false;
|
|
|
}
|
|
|
|
|
|
- if (config.url.startsWith(cfg.api) || config.url.indexOf(global.api) == 0 || config.url.indexOf(global.erp_api) == 0) {//分页时自带了请求路径
|
|
|
+ if (config.url.startsWith(cfg.api) || config.url.indexOf(global.api) == 0) {//分页时自带了请求路径
|
|
|
if (config.url.startsWith(cfg.api)) config.url = global.api + config.url;
|
|
|
console.log(angular.lowercase(config.method) + " url: " + config.url);
|
|
|
if (global.user.token) {
|