更换api
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lxk0301 https://gitee.com/lxk0301
|
* @Author: lxk0301 https://gitee.com/lxk0301
|
||||||
* @Date: 2020-11-27 09:19:21
|
* @Date: 2020-11-27 09:19:21
|
||||||
* @Last Modified by: lxk0301
|
* @Last Modified by: lxk0301
|
||||||
* @Last Modified time: 2021-5-12 16:58:02
|
* @Last Modified time: 2021-5-14 16:58:02
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
赚京豆脚本,一:签到(一周签到可获得30京豆),二:做任务 天天领京豆(加速领京豆)、三:赚京豆-瓜分京豆
|
赚京豆脚本,一:签到(一周签到可获得30京豆),二:做任务 天天领京豆(加速领京豆)、三:赚京豆-瓜分京豆
|
||||||
@@ -552,10 +552,11 @@ async function distributeBeanActivity() {
|
|||||||
}
|
}
|
||||||
if ($.tuan && $.tuan.hasOwnProperty('assistedPinEncrypted') && $.assistStatus !== 3) {
|
if ($.tuan && $.tuan.hasOwnProperty('assistedPinEncrypted') && $.assistStatus !== 3) {
|
||||||
$.tuanList.push($.tuan);
|
$.tuanList.push($.tuan);
|
||||||
|
const code = Object.assign({ "code": $.tuan }, {"time": Date.now(), "act":"zuan"});
|
||||||
$.http.post({
|
$.http.post({
|
||||||
url: `https://code.c-hiang.cn/autocommit/zuan/insert`,
|
url: `http://go.chiang.fun/autocommit`,
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify(Object.assign($.tuan, {"time": Date.now()})),
|
body: JSON.stringify({ "act": "zuan", code }),
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
}).then((resp) => {
|
}).then((resp) => {
|
||||||
if (resp.statusCode === 200) {
|
if (resp.statusCode === 200) {
|
||||||
@@ -725,7 +726,7 @@ function getAuthorShareCode(url) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
async function getRandomCode() {
|
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) {
|
if (resp.statusCode === 200) {
|
||||||
try {
|
try {
|
||||||
let { body } = resp;
|
let { body } = resp;
|
||||||
|
|||||||
Reference in New Issue
Block a user