|
|
@@ -372,7 +372,9 @@ |
|
|
|
var xmlReq = getHttpObj();
|
|
|
|
var offline = element.online === "false";
|
|
|
|
var url = offline ? element.url : element.url + "ribbon.xml";
|
|
|
|
xmlReq.open("POST", "http://localhost:58890/redirect/runParams");
|
|
|
|
// xmlReq.open("POST", "http://localhost:58890/redirect/runParams");
|
|
|
|
// http://webtest.ningdatech.com/
|
|
|
|
xmlReq.open("POST", "http://webtest.ningdatech.com/wpspublishapi/redirect/runParams");
|
|
|
|
xmlReq.onload = function (res) {
|
|
|
|
if ((offline && res.target.response.startsWith("7z"))
|
|
|
|
|| !offline && res.target.response.startsWith("<customUI")) {
|
|
|
@@ -549,7 +551,7 @@ |
|
|
|
var baseData
|
|
|
|
if (serverVersion >= "1.0.2" && serverId != undefined)
|
|
|
|
baseData = JSON.stringify({ serverId: serverId });
|
|
|
|
var req = { url: "http://127.0.0.1:58890/publishlist", type: "POST" };
|
|
|
|
var req = { url: "http://webtest.ningdatech.com/wpspublishapi/publishlist", type: "POST" };
|
|
|
|
startWps(req, baseData, function (res) {
|
|
|
|
if (res.status == 0) {
|
|
|
|
var addonList = document.getElementById("addonList");
|
|
|
@@ -576,7 +578,7 @@ |
|
|
|
|
|
|
|
var serverVersion = "wait";
|
|
|
|
function InitSdk() {
|
|
|
|
var req = { url: "http://127.0.0.1:58890/version", type: "POST" };
|
|
|
|
var req = { url: "http://webtest.ningdatech.com/wpspublishapi/version", type: "POST" };
|
|
|
|
startWps(
|
|
|
|
req,
|
|
|
|
JSON.stringify({ serverId: serverId }),
|
|
|
|