From bd8205cf1b3b4cd26e96dfa6e9d3d85c3163c88b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 17 Oct 2024 20:46:42 +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 33032f58..3b3d5da0 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -983,12 +983,12 @@ function shareResource() { } let textcontent = globalMap0.getVar('Jy_gmParams').zip(JSON.stringify(text)); try{ - log('content='+textcontent+'&path='+it.path+'&auth_code='+it.token); + log('1'); let pasteupdate = JSON.parse(request('https://pasteme.tyrantg.com/api/update', { body: 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token, method: 'POST' })); - + log('2'); if(pasteupdate.result_code=="SUCCESS"){ let resources = Juconfig['shareResource'] || []; const index = resources.findIndex(item => item.path === it.path); @@ -1004,7 +1004,7 @@ function shareResource() { return 'toast://分享同步云端失败,'+pasteupdate.message; } } catch (e) { - log('分享上传云端失败:'+e.message); + log('分享上传云端失败:'+e.message + " 错误行#" + e.lineNumber); return 'toast://分享上传云端失败,网络或内容出错'; } },