mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
fix
This commit is contained in:
parent
98513f80e2
commit
4e239d53af
|
@ -201,7 +201,7 @@ var getMyServers = function(assignedServers) {
|
|||
|
||||
pingtest();
|
||||
setInterval(pingtest, 5000);
|
||||
document.getElementById("btn_pingtest").onclick = pingtest;
|
||||
//document.getElementById("btn_pingtest").onclick = pingtest;
|
||||
|
||||
getMyApplications();
|
||||
};
|
||||
|
@ -249,7 +249,8 @@ if (typeof(token) !== "undefined") {
|
|||
exit(0);
|
||||
};
|
||||
|
||||
document.getElementById("btn_assign").onclick = assign;
|
||||
//document.getElementById("btn_assign").onclick = assign;
|
||||
assign();
|
||||
} else {
|
||||
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
|
||||
|
||||
|
|
|
@ -52,7 +52,9 @@
|
|||
<div class="cell">
|
||||
<div class="col">
|
||||
<button id="btn_logout" class="button" type="button">로그아웃</button>
|
||||
<!--
|
||||
<button id="btn_pingtest" class="button" type="button">속도 재측정</button>
|
||||
<button id="btn_assign" class="button" type="button">IP 적용</button>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -12,6 +12,7 @@ var HTTPObject = function() {
|
|||
this.method = "";
|
||||
this.headers = {};
|
||||
this.dataType = "";
|
||||
this.userAgent = "WelsonJS/0.1.4-dev (https://github.com/gnh1201/welsonjs)";
|
||||
|
||||
this.create = function() {
|
||||
this.interface = CreateObject([
|
||||
|
@ -130,6 +131,11 @@ var HTTPObject = function() {
|
|||
return this;
|
||||
};
|
||||
|
||||
this.setUserAgent = function(agent) {
|
||||
this.userAgent = agent;
|
||||
this.setHeader("User-Agent", this.userAgent);
|
||||
};
|
||||
|
||||
this.open = function(method, url, isAsync) {
|
||||
this.setMethod(method.toUpperCase());
|
||||
|
||||
|
@ -210,6 +216,7 @@ var HTTPObject = function() {
|
|||
};
|
||||
|
||||
this.create();
|
||||
this.setUserAgent(this.userAgent);
|
||||
};
|
||||
|
||||
exports.create = function() {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
////////////////////////////////////////////////////////////////////////
|
||||
var FILE = require("lib/file");
|
||||
|
||||
var StreamBuilder = function(data) {
|
||||
var StreamConvert = function(data) {
|
||||
this.data = data;
|
||||
|
||||
this.toBinary = function() {
|
||||
|
@ -48,7 +48,7 @@ var XMLObject = function(dom) {
|
|||
"Msxml2.DOMDocument.5.0",
|
||||
"Msxml2.DOMDocument.4.0",
|
||||
"Msxml2.DOMDocument.3.0",
|
||||
"MSXML2.DOMDocument",
|
||||
"Msxml2.DOMDocument",
|
||||
"MSXML.DOMDocument"
|
||||
]);
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ var XMLObject = function(dom) {
|
|||
|
||||
dom.dataType = type;
|
||||
if (type.indexOf("bin.") == 0) {
|
||||
dom.nodeTypedValue = (new StreamBuilder(value)).toBinary();
|
||||
dom.nodeTypedValue = (new StreamConvert(value)).toBinary();
|
||||
} else {
|
||||
dom.nodeTypedValue = value;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ var XMLObject = function(dom) {
|
|||
|
||||
dom.dataType = type;
|
||||
if (type.indexOf("bin.") == 0) {
|
||||
dom.text = (new StreamBuilder(value)).toString();
|
||||
dom.text = (new StreamConvert(value)).toString();
|
||||
} else {
|
||||
dom.text = value;
|
||||
}
|
||||
|
|
2
stdout.txt
Normal file
2
stdout.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
0,LDPlayer,0,0,0,-1,-1
|
||||
1,LDPlayer-1,0,0,0,-1,-1
|
1
token.txt
Normal file
1
token.txt
Normal file
|
@ -0,0 +1 @@
|
|||
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNjA1MTU4NjA2LCJ0dGwiOjIwLCJ0eXBlIjoiYXV0aCIsImtleSI6Ijg1N2NlZDg1LTMzOWEtNDViNS04YTQ5LTJjOGM0YmE4ZDVmNCIsInByb2plY3QiOiJuZXRzb2xpZCJ9.4g7ChYBd7fnGivaLif50R1uVaHp08wDXacn-cOXPLKA
|
1
userid.txt
Normal file
1
userid.txt
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -27,7 +27,7 @@ global.console._echo = function(msg, type) {
|
|||
icon = "info";
|
||||
|
||||
default:
|
||||
heading = "Message";
|
||||
heading = "Success";
|
||||
icon = "success";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user