有玩家分享了快速统计充值记录的代码:看看你冲了多少钱吧。

第一步,打开战网登录界面找到充值页面

https://account.battlenet.com.cn/

第二步,浏览器点F12,点控制台,输入

let res = await fetch('https://account.battlenet.com.cn/api/transactions?regionId=5').then(res => res.json())
let total = 0
for (const item of res.purchases) {
if (item.productTitle != '暴雪游戏点数' && item.formattedTotal.includes('¥') && !item.productTitle.includes('eBalance')) {
total += Number(item.total)
}
}
console.log('累计充值: '+ total)

办法也可参考NGA

https://nga.178.com/read.php?tid=40428486

https://nga.178.com/read.php?tid=40428669