From ab1aeb422e09a9d3c50e4a4a010266e3fea7a1be Mon Sep 17 00:00:00 2001 From: wisz2021 Date: Fri, 14 May 2021 14:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_syj.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jd_syj.js b/jd_syj.js index b773c5ae..1891cac8 100644 --- a/jd_syj.js +++ b/jd_syj.js @@ -2,7 +2,7 @@ * @Author: lxk0301 https://gitee.com/lxk0301 * @Date: 2020-11-27 09:19:21 * @Last Modified by: lxk0301 - * @Last Modified time: 2021-5-12 16:58:02 + * @Last Modified time: 2021-5-14 16:58:02 */ /* 赚京豆脚本,一:签到(一周签到可获得30京豆),二:做任务 天天领京豆(加速领京豆)、三:赚京豆-瓜分京豆 @@ -552,10 +552,11 @@ async function distributeBeanActivity() { } if ($.tuan && $.tuan.hasOwnProperty('assistedPinEncrypted') && $.assistStatus !== 3) { $.tuanList.push($.tuan); + const code = Object.assign({ "code": $.tuan }, {"time": Date.now(), "act":"zuan"}); $.http.post({ - url: `https://code.c-hiang.cn/autocommit/zuan/insert`, + url: `http://go.chiang.fun/autocommit`, headers: { "Content-Type": "application/json" }, - body: JSON.stringify(Object.assign($.tuan, {"time": Date.now()})), + body: JSON.stringify({ "act": "zuan", code }), timeout: 30000 }).then((resp) => { if (resp.statusCode === 200) { @@ -725,7 +726,7 @@ function getAuthorShareCode(url) { }) } async function getRandomCode() { - await $.http.get({url: `https://code.c-hiang.cn/api/v1/jd/zuan/read/${randomCount}`, timeout: 10000}).then(async (resp) => { + await $.http.get({url: `http://go.chiang.fun/read/zuan/${randomCount}`, timeout: 10000}).then(async (resp) => { if (resp.statusCode === 200) { try { let { body } = resp;