|
|
@@ -235,19 +235,17 @@ export default {
|
|
|
})
|
|
|
|
|
|
// 成功后处理剩下账号数据
|
|
|
- // const loadingNum = userLists.length - 1
|
|
|
- console.log('# AAA:', userLists)
|
|
|
+ const loadingNum = userLists.length - 2
|
|
|
userLists = LodashArray.drop(userLists)
|
|
|
- console.log('# BBBB:', userLists)
|
|
|
- loading.close()
|
|
|
- // userLists.forEach(async(item, index) => {
|
|
|
- // var _data = { pid: this.dataForm.pid, cid: this.dataForm.cid, gfid: this.dataForm.gfid, paypwd: value, username: item, money: this.dataForm.money, recharge: this.dataForm.recharge, payway: this.dataForm.payway, type: this.dataForm.type }
|
|
|
- // await this.rechargePlayer(_data, index)
|
|
|
- // if (loadingNum === index) {
|
|
|
- // loading.close()
|
|
|
- // this.updateUserMoney()
|
|
|
- // }
|
|
|
- // })
|
|
|
+ userLists.forEach(async(item, index) => {
|
|
|
+ var _data = { pid: this.dataForm.pid, cid: this.dataForm.cid, gfid: this.dataForm.gfid, paypwd: value, username: item, money: this.dataForm.money, recharge: this.dataForm.recharge, payway: this.dataForm.payway, type: this.dataForm.type }
|
|
|
+ await this.rechargePlayer(_data, index)
|
|
|
+ // console.log('# forEach:', loadingNum, index)
|
|
|
+ if (loadingNum === index) {
|
|
|
+ loading.close()
|
|
|
+ this.updateUserMoney()
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
this.catchAccount = this.catchAccount + oneData.username + '\n'
|
|
|
this.catchAccountNum++
|