修复兑换金币异常问题

This commit is contained in:
dragon
2024-09-04 12:05:53 +08:00
parent 7a82663ca9
commit a2ae2b8e8c
2 changed files with 3 additions and 3 deletions

View File

@@ -43,4 +43,4 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/exchangeGold.js"></script>
<script src="./js/exchangeGold.js?v=1.0"></script>

View File

@@ -51,8 +51,8 @@ function getConfig () {
rate = res.data.rate;
maxDiamonds = res.data.maxDiamonds;
minDiamonds = res.data.minDiamonds;
$('.box .golds').text('我的鉆石:' + res.data.diamonds);
$('.box .diamonds').text('我的金幣:' + res.data.golds);
$('.box .golds').text('我的鉆石:' + res.data.golds);
$('.box .diamonds').text('我的金幣:' + res.data.diamonds);
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {