好友:修复读表bug

This commit is contained in:
luying
2021-04-25 19:08:15 +08:00
parent e6facc1984
commit e8eb61cc16
2 changed files with 4 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ export class GachaHandler {
}
return resResult(STATUS.SUCCESS, {
gachaId, activityId,
freeCount, refFreeTime: resultRefFreeTime, count, point, floor,
freeCount, refFreeTime: resultRefFreeTime, count, point, floor, hope,
heroes, result: resultList
});
}

View File

@@ -10,7 +10,7 @@ import { FriendRelationModel, Relation } from "../../../db/FriendRelation";
import { isRoleOnline, getServerName, getRoleOnlineInfo } from "../../../services/redisService";
import { increaseFrdCnt, getRecommendType, sortByBeSentHeart } from "../../../services/friendService";
import { FriendPointModel } from "../../../db/FriendPoint";
import { gameData } from "../../../pubUtils/data";
import { gameData, getDicFriendByLv } from "../../../pubUtils/data";
import { addItems, handleCost } from "../../../services/rewardService";
import { getFriendPointObject } from "../../../pubUtils/itemUtils";
import { RewardInter } from "../../../pubUtils/interface";
@@ -509,7 +509,7 @@ export class FriendHandler {
let canSendList = await sortByBeSentHeart(roleId, arr);
let {lv} = await RoleModel.findByRoleId(roleId, ROLE_SELECT.GET_LV);
let dicFriendLv = gameData.roleFriend.get(lv);
let dicFriendLv = getDicFriendByLv(lv);
if(!dicFriendLv) return resResult(STATUS.DIC_DATA_NOT_FOUND);
// 情谊值有上限,送到上限为止
@@ -576,7 +576,7 @@ export class FriendHandler {
let canReceiveList = await sortByBeSentHeart(roleId, arr);
let {lv} = await RoleModel.findByRoleId(roleId, ROLE_SELECT.GET_LV);
let dicFriendLv = gameData.roleFriend.get(lv);
let dicFriendLv = getDicFriendByLv(lv);
if(!dicFriendLv) return resResult(STATUS.DIC_DATA_NOT_FOUND);
// 情谊值有上限,到上限为止