From b82739e55ebacd4664b1ddd454418e7d488dcd5c Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 20 Oct 2024 18:25:29 +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 b46f65fc..b9898d12 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -984,11 +984,11 @@ function shareResource() { return "toast://无内容分享"; } let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); + log(textcontent); try{ 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, - "method": "POST" + body: 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token, + method: 'POST' })); if(pasteupdate.result_code=="SUCCESS"){ let resources = Juconfig['shareResource'] || [];