🐞 fix(礼包): 隐藏数据筛选key错误
This commit is contained in:
@@ -69,7 +69,7 @@ export async function useGiftPackage(roleId: string, roleName: string, sid: stri
|
||||
case GIFT_PACKAGE_TYPE.RANDOM_X://随机
|
||||
{
|
||||
let count = giftPackageData.count;//随机个数
|
||||
let pool = dicGiftPackagePlan.filter(cur => cur.contentType == 1? !isHeroHidden(cur.id): !isGoodsHidden(cur.id));
|
||||
let pool = dicGiftPackagePlan.filter(cur => cur.contentType == 1? !isHeroHidden(cur.content): !isGoodsHidden(cur.content));
|
||||
if(pool.length <= 0) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
let allReward: { type: number, id: number, count: number }[] = [];
|
||||
let giftPackage = { giftPackageId: giftID };
|
||||
|
||||
Reference in New Issue
Block a user