From 8e68c3897b08ef50e588a042a6489c5e30bc4673 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 17 Oct 2024 20:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 045c93b2..1cb8de8a 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -984,9 +984,9 @@ function shareResource() { let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); try{ log('1'); - let json = request('https://pasteme.tyrantg.com/api/update', { - "body": 'content='+JSON.stringify(text)+'&path='+it.path+'&auth_code='+it.token, - "method": 'POST' + let json = fetchPC('https://pasteme.tyrantg.com/api/update', { + "body": "content="+textcontent+"&path="+it.path+"&auth_code="+it.token, + "method": "POST" }) log(json); let pasteupdate = JSON.parse(json);