MCPcopy Create free account
hub / github.com/Semporia/Scripts / inviteFriendsInitFun

Function inviteFriendsInitFun

jd_pet.js:407–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406// 邀请新用户
407async function inviteFriendsInitFun() {
408 console.log('邀请新用户功能未实现');
409 if ($.taskInfo.inviteFriendsInit.status == 1 && $.taskInfo.inviteFriendsInit.inviteFriendsNum > 0) {
410 // 如果有邀请过新用户,自动领取60gg奖励
411 const res = await request('getInviteFriendsReward');
412 if (res.code == 0 && res.resultCode == 0) {
413 console.log(`领取邀请新用户奖励成功,获得狗粮现有狗粮${$.taskInfo.inviteFriendsInit.reward}g,${res.result.foodAmount}g`);
414 message += `【邀请新用户】获取狗粮${$.taskInfo.inviteFriendsInit.reward}g\n`;
415 }
416 }
417}
418
419/**
420 * 投食10次 任务

Callers 1

doTaskFunction · 0.85

Calls 2

requestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected