|
@@ -20,6 +20,7 @@ var BasicFunction = new (function () {
|
|
THRESHOLD: 1000,
|
|
THRESHOLD: 1000,
|
|
IS_LOADED: false,
|
|
IS_LOADED: false,
|
|
nowuse: 0, SVR_URL: "/server/",
|
|
nowuse: 0, SVR_URL: "/server/",
|
|
|
|
+ TEST_URL:"ajaxlogin",
|
|
groupsCount: 0, groups: [],
|
|
groupsCount: 0, groups: [],
|
|
shouldStop: false,
|
|
shouldStop: false,
|
|
backup: ["/server/",
|
|
backup: ["/server/",
|
|
@@ -88,7 +89,7 @@ var BasicFunction = new (function () {
|
|
|
|
|
|
this.get_server_url = function () {
|
|
this.get_server_url = function () {
|
|
// AJAX
|
|
// AJAX
|
|
- this.output = this.goajax({url: this.Queue.SVR_URL + "ajaxlogin", timeout: 1000})
|
|
|
|
|
|
+ this.output = this.goajax({url: this.Queue.SVR_URL + BasicFunction.Queue.TEST_URL, timeout: 1000})
|
|
.then(this.checkStatus)
|
|
.then(this.checkStatus)
|
|
.then(this.parseJson)
|
|
.then(this.parseJson)
|
|
.then(this.onReachServer)
|
|
.then(this.onReachServer)
|
|
@@ -117,7 +118,7 @@ var BasicFunction = new (function () {
|
|
BasicFunction.Queue.nowuse++;
|
|
BasicFunction.Queue.nowuse++;
|
|
BasicFunction.Queue.SVR_URL = BasicFunction.Queue.backup[BasicFunction.Queue.nowuse];
|
|
BasicFunction.Queue.SVR_URL = BasicFunction.Queue.backup[BasicFunction.Queue.nowuse];
|
|
// AJAX
|
|
// AJAX
|
|
- BasicFunction.goajax({url: BasicFunction.Queue.SVR_URL + "fcFlow/list", timeout: 1000})
|
|
|
|
|
|
+ BasicFunction.goajax({url: BasicFunction.Queue.SVR_URL + BasicFunction.Queue.TEST_URL, timeout: 1000})
|
|
.then(BasicFunction.checkStatus)
|
|
.then(BasicFunction.checkStatus)
|
|
.then(function (response) {return response.json();} )
|
|
.then(function (response) {return response.json();} )
|
|
.then(BasicFunction.onReachServer)
|
|
.then(BasicFunction.onReachServer)
|