更新 'SrcJyPublic.js'

master
src48597962 4 months ago
parent 8f5026891e
commit f19951331d
  1. 13
      SrcJyPublic.js

@ -929,7 +929,7 @@ function shareResource() {
if(options.filter((v, i) => checked[i]).length==0){
return "toast://没有选择上传项";
}
return $().lazyRule((options, checked)=>{
let text = {};
options.forEach((option,i)=>{
if(checked[i]){
@ -985,7 +985,7 @@ function shareResource() {
}
let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text));
log("content="+textcontent+"&path="+it.path+"&auth_code="+it.token);
//try{
try{
let pasteupdate = JSON.parse(request("https://pasteme.tyrantg.com/api/update",{
body: "content="+textcontent+"&path="+it.path+"&auth_code="+it.token,
method: "POST"
@ -1008,10 +1008,11 @@ function shareResource() {
return 'toast://分享同步云端失败,'+pasteupdate.message;
}
*/
//} catch (e) {
// log('分享上传云端失败:'+e.message + " 错误行#" + e.lineNumber);
// return 'toast://分享上传云端失败,网络或内容出错';
//}
} catch (e) {
log('分享上传云端失败:'+e.message + " 错误行#" + e.lineNumber);
return 'toast://分享上传云端失败,网络或内容出错';
}
}, options, checked)
},
centerTitle: "取消"
});

Loading…
Cancel
Save