From 00350d6e84728c5b50b625180e5e947ed1921608 Mon Sep 17 00:00:00 2001 From: cokyrain <75012356+cokyrain@users.noreply.github.com> Date: Thu, 24 Dec 2020 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=91=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决云函数报错 in method 'console_log', argument 1 of type 'char *' --- jd_bean_sign.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jd_bean_sign.js b/jd_bean_sign.js index 62b19a32..accf5990 100644 --- a/jd_bean_sign.js +++ b/jd_bean_sign.js @@ -65,7 +65,7 @@ async function execSign() { const notifyContent = await fs.readFileSync(resultPath, "utf8"); console.log(`👇👇👇👇👇👇👇👇👇👇👇LOG记录👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆LOG记录👆👆👆👆👆👆👆👆👆👆👆`); // await exec("node JD_DailyBonus.js", { stdio: "inherit" }); - // console.log('执行完毕', new Date(new Date().getTime() + 8 * 60 * 60 * 1000).toLocaleDateString()) + // console.log('执行完毕', new Date(new Date().getTime() + 8 * 3600000).toLocaleDateString()) //发送通知 if ($.isNode()) { let notifyContent = ""; @@ -88,7 +88,7 @@ async function execSign() { } } //不管哪个时区,这里得到的都是北京时间的时间戳; - const UTC8 = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000; + const UTC8 = new Date().getTime() + new Date().getTimezoneOffset()*60000 + 28800000; $.beanSignTime = timeFormat(UTC8); console.log(`脚本执行完毕时间:${$.beanSignTime}`) if (BarkContent) {