|
@@ -462,6 +462,7 @@ export class App implements OnInit {
|
|
|
async doRecharge(): Promise<void> {
|
|
async doRecharge(): Promise<void> {
|
|
|
this.showQrModal = false;
|
|
this.showQrModal = false;
|
|
|
this.showSuccess = true;
|
|
this.showSuccess = true;
|
|
|
|
|
+ this.cdr.detectChanges();
|
|
|
const oldCount = this.apig!.count || 0;
|
|
const oldCount = this.apig!.count || 0;
|
|
|
const tier = this.apig!.priceStep![this.selectedIndex];
|
|
const tier = this.apig!.priceStep![this.selectedIndex];
|
|
|
console.log('═══ [RECHARGE] 开始 ═══ oldCount:', oldCount, 'addCount:', tier.count, 'fun_id:', this.funId);
|
|
console.log('═══ [RECHARGE] 开始 ═══ oldCount:', oldCount, 'addCount:', tier.count, 'fun_id:', this.funId);
|
|
@@ -473,6 +474,7 @@ export class App implements OnInit {
|
|
|
await this.refreshBalance();
|
|
await this.refreshBalance();
|
|
|
if (this.apig!.count! > oldCount) {
|
|
if (this.apig!.count! > oldCount) {
|
|
|
console.log('[RECHARGE] ✅ 后端回调充值成功! 余额:', oldCount, '→', this.apig!.count);
|
|
console.log('[RECHARGE] ✅ 后端回调充值成功! 余额:', oldCount, '→', this.apig!.count);
|
|
|
|
|
+ this.cdr.detectChanges();
|
|
|
this.loadOrderHistory();
|
|
this.loadOrderHistory();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -511,6 +513,7 @@ export class App implements OnInit {
|
|
|
console.warn('[RECHARGE] ⚠️ 充值可能延迟,请稍后刷新页面查看');
|
|
console.warn('[RECHARGE] ⚠️ 充值可能延迟,请稍后刷新页面查看');
|
|
|
}
|
|
}
|
|
|
console.log('═══ [RECHARGE] 结束 ═══ 最终余额:', this.apig!.count);
|
|
console.log('═══ [RECHARGE] 结束 ═══ 最终余额:', this.apig!.count);
|
|
|
|
|
+ this.cdr.detectChanges();
|
|
|
this.loadOrderHistory();
|
|
this.loadOrderHistory();
|
|
|
}
|
|
}
|
|
|
|
|
|