diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 05cacd39..490c3f4b 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -983,13 +983,10 @@ function shareResource() { } let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); try{ - log("content="+textcontent+"&path="+it.path+"&auth_code="+it.token); - let json = post('https://pasteme.tyrantg.com/api/update', { - "body": "content="+textcontent+"&path="+it.path+"&auth_code="+it.token - }) - log(json); - let pasteupdate = JSON.parse(json); - log('2'); + let pasteupdate = JSON.parse(request('https://pasteme.tyrantg.com/api/update', { + body: 'content='+textcontent+'&path='+it.path+'@juying'+'&auth_code='+it.token, + method: 'POST' + })); if(pasteupdate.result_code=="SUCCESS"){ let resources = Juconfig['shareResource'] || []; const index = resources.findIndex(item => item.path === it.path);