薛鸿潇 пре 5 година
родитељ
комит
4e9ff363a9

+ 1 - 1
assets/script/game/data/module/SignData.ts

@@ -166,7 +166,7 @@ export class SignData extends Data {
         for (let i = 0; i < l_count; i++) {
             const i_count = this.list_data[i].length;
             for (let j = 0; j < i_count; j++) {
-                let state = this.getStateByDay(this.list_data[i][j].loginDay);
+                let state = this.getStateByDay(this.list_data[i][j].id);
                 if (gData.gameData.gameData.isSignInToday == 0) {
                     if (state === RewardState.unlock) {
                         index = i;

+ 2 - 2
assets/script/game/module/sign/SignIconItem.ts

@@ -50,7 +50,7 @@ export default class SignIconItem extends cc.Component {
             this.node.active = false;
             return
         }
-        this.lbl_day.string = '第' + this.icon_data.loginDay + '天';
+        this.lbl_day.string = '第' + this.icon_data.id + '天';
         if (this.icon_data.rewardType == RewardType.rmb || this.icon_data.rewardType == RewardType.pigRmb) {
             this.node_cash.active = true;
             this.node_redbag.active = false;
@@ -62,7 +62,7 @@ export default class SignIconItem extends cc.Component {
         }
 
         // 状态样式
-        let state = gData.sign.getStateByDay(this.icon_data.loginDay);
+        let state = gData.sign.getStateByDay(this.icon_data.id);
         if (state == RewardState.none) {
             this.node_mask.active = true;
             this.node_gou.active = true;