|
@@ -2895,7 +2895,7 @@ U.MD.D.I.getEditorContent = function (iframe) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
|
|
|
|
|
|
+U.MD.D.I.getContent = function (cid, s, task, t, uid, type) {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
|
|
U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
|
|
if (res.value[0].length > 0) {
|
|
if (res.value[0].length > 0) {
|
|
@@ -2903,6 +2903,8 @@ U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
|
|
resolve(res.value[0][0].text);
|
|
resolve(res.value[0][0].text);
|
|
|
|
|
|
|
|
|
|
|
|
+ }else{
|
|
|
|
+ resolve("")
|
|
}
|
|
}
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
});
|
|
});
|