mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +00:00
qqqq
This commit is contained in:
@@ -12,8 +12,9 @@ export default class GiftData extends BaseData{
|
||||
records:GiftRecord[] = [];
|
||||
dayRecords:GiftDayRecord[] = [];
|
||||
|
||||
onInit() {
|
||||
|
||||
async onInit() {
|
||||
await this.UpdateGiftRecord();
|
||||
await this.UpdateGiftDayRecord();
|
||||
}
|
||||
|
||||
//查询充值记录
|
||||
@@ -38,6 +39,8 @@ export default class GiftData extends BaseData{
|
||||
//购买礼包
|
||||
async buy(giftId:number){
|
||||
await API.BuyGift(giftId);
|
||||
await this.UpdateGiftRecord();
|
||||
await this.UpdateGiftDayRecord();
|
||||
app.event.emit(GiftDataEnum.BUY);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user