添加json
This commit is contained in:
@@ -137,7 +137,8 @@ export const CURRENCY_TYPE = {
|
||||
TREASURE_POINT: "treasurePoint",
|
||||
EXPEDITION_POINT: "expeditionPoint",
|
||||
DUNGEON_POINT: "dungeonPoint",
|
||||
FRIEND_POINT: "friendPoint"
|
||||
FRIEND_POINT: "friendPoint",
|
||||
HONOUR: "honour"
|
||||
}
|
||||
|
||||
|
||||
@@ -153,6 +154,7 @@ const currencyArr = [
|
||||
{ "gid": 40002, "name": "寻宝币", "type": CURRENCY_TYPE.TREASURE_POINT },
|
||||
{ "gid": 40003, "name": "情谊点", "type": CURRENCY_TYPE.FRIEND_POINT },
|
||||
{ "gid": 40004, "name": "秘境币", "type": CURRENCY_TYPE.DUNGEON_POINT },
|
||||
{ "gid": 40005, "name": "功勋", "type": CURRENCY_TYPE.HONOUR }
|
||||
];
|
||||
export const CURRENCY = new Map<number, {gid: number, name: string, type: string}>();
|
||||
export const CURRENCY_BY_TYPE = new Map<string, number>();
|
||||
@@ -198,6 +200,8 @@ export function getCurNameById(gid) {
|
||||
return 'frdCnt';
|
||||
} else if (currency.type == CURRENCY_TYPE.EXPEDITION_POINT) {
|
||||
return 'expeditionPoint';
|
||||
} else if (currency.type == CURRENCY_TYPE.HONOUR) {
|
||||
return 'honour'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user