更新 'SrcJyPublic.js'

master
src48597962 4 months ago
parent d6a9c83e08
commit b82739e55e
  1. 6
      SrcJyPublic.js

@ -984,11 +984,11 @@ function shareResource() {
return "toast://无内容分享"; return "toast://无内容分享";
} }
let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text));
log(textcontent);
try{ try{
let pasteupdate = JSON.parse(request('https://pasteme.tyrantg.com/api/update', { let pasteupdate = JSON.parse(request('https://pasteme.tyrantg.com/api/update', {
"content-type": "application/json;charset=UTF-8", body: 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token,
"body": "content="+textcontent+"&path="+it.path+"&auth_code="+it.token, method: 'POST'
"method": "POST"
})); }));
if(pasteupdate.result_code=="SUCCESS"){ if(pasteupdate.result_code=="SUCCESS"){
let resources = Juconfig['shareResource'] || []; let resources = Juconfig['shareResource'] || [];

Loading…
Cancel
Save