有玩家分享了快速统计充值记录的代码:看看你冲了多少钱吧。
第一步,打开战网登录界面找到充值页面
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
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.