浏览代码

wps插件

dev
月夕花晨 7 个月前
父节点
当前提交
d580898df2
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      test/oaassist/publish.html

+ 5
- 3
test/oaassist/publish.html 查看文件

@@ -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 }),


正在加载...
取消
保存