This commit is contained in:
lxk0301
2020-12-04 15:31:55 +08:00
parent 03568f2dc9
commit d508a87405

View File

@ -33,9 +33,9 @@ let jdNotify = true;//是否关闭通知false打开通知推送true关闭
const randomCount = $.isNode() ? 20 : 5;
const tuanActiveId = `jfkcidGQavswLOBcAWljrw==`;
const tuanIDs = [
'VOcrtYB9nzwxcRGHZAIirA==',
'A-CujUJn3N3XDU4y7Yusvg==',
'22uTFAf6W--EBN0Z64tXZg==',
"XgKt9JBOEZEqFpTk1gw79g==",
'lvArkUAPQtXfjt9O7PGh9A==',
'Edcyq9n8AFJH16varH0-bw=='
]
let cookiesArr = [], cookie = '', message = '';
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw=="];
@ -752,6 +752,7 @@ async function tuanActivity() {
if (user.encryptPin === $.encryptPin) {
if (user.receiveElectric && user.receiveElectric > 0) {
console.log(`您在${new Date(user.joinTime * 1000).toLocaleString()}开团奖励已经领取成功\n`)
if ($.surplusOpenTuanNum > 0) await CreateTuan();
} else {
$.log(`开始领取开团奖励`);
await tuanAward(item.tuanActiveId, item.tuanId);//isTuanLeader
@ -1015,6 +1016,10 @@ function tuanAward(activeId, tuanId, isTuanLeader = true) {
if (isTuanLeader) {
console.log(`开团奖励(团长)${data.data['electric']}领取成功`);
message += `【开团(团长)奖励】${data.data['electric']}领取成功\n`;
if ($.surplusOpenTuanNum > 0) {
$.log(`开团奖励(团长)已领取,准备开团`);
await CreateTuan();
}
} else {
console.log(`参团奖励${data.data['electric']}领取成功`);
message += `【参团奖励】${data.data['electric']}领取成功\n`;