update
This commit is contained in:
@@ -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)}`)
|
||||
|
Reference in New Issue
Block a user