更新 'SrcJyPublic.js'

master
src48597962 4 months ago
parent 16fcbf6cb3
commit 8e68c3897b
  1. 6
      SrcJyPublic.js

@ -984,9 +984,9 @@ 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 json = request('https://pasteme.tyrantg.com/api/update', { let json = fetchPC('https://pasteme.tyrantg.com/api/update', {
"body": 'content='+JSON.stringify(text)+'&path='+it.path+'&auth_code='+it.token, "body": "content="+textcontent+"&path="+it.path+"&auth_code="+it.token,
"method": 'POST' "method": "POST"
}) })
log(json); log(json);
let pasteupdate = JSON.parse(json); let pasteupdate = JSON.parse(json);

Loading…
Cancel
Save