Browse Source

【修复】红包提现显示错误问题
http://chandao.zbc6b.com/zentao/bug-view-1000.html###

zouyong 5 năm trước cách đây
mục cha
commit
4568fdf1f4

+ 2 - 2
assets/resources/game/config/level.json

@@ -6,8 +6,8 @@
         "3":{"0":3,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4},
         "4":{"0":3,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4},
         "5":{"0":3,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4},
-        "6":{"0":4,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4},
-        "7":{"0":4,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4}
+        "6":{"0":5,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4},
+        "7":{"0":5,"1":5,"2":5,"3":5,"4":5,"5":5,"6":5,"7":5}
     },
     "1": {
         "0":{"0":3,"1":3,"2":5,"3":1,"4":1,"5":2,"6":2,"7":6},

+ 9 - 2
assets/script/game/data/module/RedBagCashData.ts

@@ -32,7 +32,7 @@ export class RedBagCashData extends Data {
     }
     /** 标志位:初始化列表 */
     public init_list: boolean = false;
-    public update_list:boolean = false;
+    public update_list: boolean = false;
 
     /** 配置表数据 */
     public c_data: Array<CDataType> = [];
@@ -79,7 +79,14 @@ export class RedBagCashData extends Data {
         let item_data = this.getItemDataByIndex(cash_index);
         gData.gameData.gameData.redMoney -= item_data.type_value;
         // 打开提现到账界面
-        gData.receiptNotice.receip_rmb = r_data.CashStatusList[0].amount;
+        let money = 0;
+        for (let i = 0; i < r_data.CashStatusList.length; i++) {
+            if(r_data.CashStatusList[i].index == cash_index){
+                money = r_data.CashStatusList[i].amount;
+                break;
+            }
+        }
+        gData.receiptNotice.receip_rmb = money;
         gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
         mk.ui.openPanel('module/receiptNotice/receiptNotice');