|
@@ -2895,17 +2895,17 @@ U.MD.D.I.getEditorContent = function (iframe) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-U.MD.D.I.getContent = function (cid, s, task, t, uid, type) {
|
|
|
+U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
|
|
|
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) {
|
|
|
if (res.value[0].length > 0) {
|
|
|
-
|
|
|
resolve(res.value[0][0].text);
|
|
|
-
|
|
|
-
|
|
|
}else{
|
|
|
resolve("")
|
|
|
}
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
+ reject("报错了")
|
|
|
+ }).catch(e=>{
|
|
|
+ console.log(e)
|
|
|
});
|
|
|
}
|