This commit is contained in:
lxk0301
2021-03-09 09:44:35 +08:00
parent 33cb58e0ac
commit f89f5537bf
2 changed files with 25 additions and 20 deletions

View File

@@ -83,6 +83,7 @@ async function jdCash() {
await helpFriends()
await index(true)
await getReward()
await getReward('2')
await showMsg()
}
function index(info=false) {
@@ -214,9 +215,9 @@ function doTask(type,taskInfo) {
})
})
}
function getReward() {
function getReward(source = 1) {
return new Promise((resolve) => {
$.get(taskUrl("cash_mob_reward",{"source":1,"rewardNode":""}), (err, resp, data) => {
$.get(taskUrl("cash_mob_reward",{"source": Number(source),"rewardNode":""}), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)