优化
This commit is contained in:
@ -69,7 +69,7 @@
|
|||||||
# 东东工厂
|
# 东东工厂
|
||||||
26 * * * * node /scripts/jd_jdfactory.js >> /scripts/logs/jd_jdfactory.log 2>&1
|
26 * * * * node /scripts/jd_jdfactory.js >> /scripts/logs/jd_jdfactory.log 2>&1
|
||||||
# 赚京豆(微信小程序)
|
# 赚京豆(微信小程序)
|
||||||
12 0,18,23 * * * node /scripts/jd_syj.js >> /scripts/logs/jd_syj.log 2>&1
|
12 * * * * node /scripts/jd_syj.js >> /scripts/logs/jd_syj.log 2>&1
|
||||||
# 京东快递签到
|
# 京东快递签到
|
||||||
47 1 * * * node /scripts/jd_kd.js >> /scripts/logs/jd_kd.log 2>&1
|
47 1 * * * node /scripts/jd_kd.js >> /scripts/logs/jd_kd.log 2>&1
|
||||||
# 京东汽车(签到满500赛点可兑换500京豆)
|
# 京东汽车(签到满500赛点可兑换500京豆)
|
||||||
|
@ -553,7 +553,7 @@ async function distributeBeanActivity() {
|
|||||||
$.http.post({
|
$.http.post({
|
||||||
url: `https://code.c-hiang.cn/autocommit/zuan/insert`,
|
url: `https://code.c-hiang.cn/autocommit/zuan/insert`,
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify($.tuan),
|
body: JSON.stringify(Object.assign($.tuan, {"time": Date.now()})),
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
}).then((resp) => {
|
}).then((resp) => {
|
||||||
if (resp.statusCode === 200) {
|
if (resp.statusCode === 200) {
|
||||||
@ -579,7 +579,12 @@ async function distributeBeanActivity() {
|
|||||||
}
|
}
|
||||||
function helpFriendTuan(body) {
|
function helpFriendTuan(body) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
$.get(taskUrl("vvipclub_distributeBean_assist", body), async (err, resp, data) => {
|
const data = {
|
||||||
|
"activityIdEncrypted": body['activityIdEncrypted'],
|
||||||
|
"assistStartRecordId": body['assistStartRecordId'],
|
||||||
|
"channel": body['channel'],
|
||||||
|
}
|
||||||
|
$.get(taskUrl("vvipclub_distributeBean_assist", data), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
Reference in New Issue
Block a user