Merge branch 'master' into master

This commit is contained in:
LXK9301
2021-01-20 10:10:14 +08:00
committed by GitHub
20 changed files with 702 additions and 231 deletions

View File

@@ -1,6 +1,6 @@
/*
京东京喜工厂
更新时间2021-1-17
更新时间2021-1-19
活动入口 :京东APP->游戏与互动->查看更多->京喜工厂
或者: 京东APP首页搜索 "玩一玩" ,造物工厂即可
@@ -894,6 +894,10 @@ async function tuanActivity() {
const QueryTuanRes = await QueryTuan(activeId, tuanId);
if (QueryTuanRes && QueryTuanRes.ret === 0) {
const { tuanInfo } = QueryTuanRes.data;
if ((tuanInfo && tuanInfo[0]['endTime']) <= QueryTuanRes['nowTime'] && surplusOpenTuanNum > 0) {
$.log(`之前的团已过期,准备重新开团\n`)
await CreateTuan();
}
for (let item of tuanInfo) {
const { realTuanNum, tuanNum, userInfo } = item;
$.log(`\n开团情况:${realTuanNum}/${tuanNum}\n`);
@@ -1024,6 +1028,7 @@ function CreateTuan() {
data = JSON.parse(data);
if (data['ret'] === 0) {
console.log(`开团成功tuanId为\n${data.data['tuanId']}`);
$.tuanIds.push(data.data['tuanId']);
} else {
console.log(`异常:${JSON.stringify(data)}`);
}