限时排行榜:军团资金宝箱加入排行榜
This commit is contained in:
@@ -10,6 +10,7 @@ import { createHeroes } from '../role/createHero';
|
|||||||
import { GuildModel } from '../../db/Guild';
|
import { GuildModel } from '../../db/Guild';
|
||||||
import { pushGuildInfoUpdate } from '../guildService';
|
import { pushGuildInfoUpdate } from '../guildService';
|
||||||
import { combineItems } from '../role/util';
|
import { combineItems } from '../role/util';
|
||||||
|
import { recordGuildFund } from './timeLimitRankService';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -80,8 +81,9 @@ export async function useGiftPackage(roleId: string, roleName: string, sid: stri
|
|||||||
{
|
{
|
||||||
console.log('ccccc',guildCode, giftPackageData.count)
|
console.log('ccccc',guildCode, giftPackageData.count)
|
||||||
if(!guildCode) return resResult(STATUS.ITEM_CANNOT_RECEIVE_NO_GUILD);
|
if(!guildCode) return resResult(STATUS.ITEM_CANNOT_RECEIVE_NO_GUILD);
|
||||||
const guild = await GuildModel.updateInfo(guildCode, {}, { fund: giftPackageData.count }, 'fund');
|
const guild = await GuildModel.updateInfo(guildCode, {}, { fund: giftPackageData.count });
|
||||||
await pushGuildInfoUpdate(guildCode, { fund: guild.fund });
|
await pushGuildInfoUpdate(guildCode, { fund: guild.fund });
|
||||||
|
recordGuildFund(serverId, guild, giftPackageData.count);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user