更新 'SrcJyPublic.js'

master
src48597962 4 months ago
parent bd8205cf1b
commit 443970d93d
  1. 11
      SrcJyPublic.js

@ -984,10 +984,13 @@ function shareResource() {
let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text));
try{ try{
log('1'); log('1');
let pasteupdate = JSON.parse(request('https://pasteme.tyrantg.com/api/update', { let json = request('https://pasteme.tyrantg.com/api/update', {
body: 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token, "content-type": "application/x-www-form-urlencoded",
method: 'POST' "body": 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token,
})); "method": 'POST'
})
log(json);
let pasteupdate = JSON.parse(json);
log('2'); log('2');
if(pasteupdate.result_code=="SUCCESS"){ if(pasteupdate.result_code=="SUCCESS"){
let resources = Juconfig['shareResource'] || []; let resources = Juconfig['shareResource'] || [];

Loading…
Cancel
Save