✨ feat(db): 修改role表数据库操作方式
This commit is contained in:
@@ -10,7 +10,7 @@ import { ITID, CONSUME_TYPE } from '../../../consts/constModules/itemConst';
|
||||
import { GUILD_POINT_WAYS, GUILD_STRUCTURE, WISH_POOL_TYPE } from '../../../consts/constModules/guildConst';
|
||||
import { getWishPool, getUserGuildWithRefActive, addActive, canWishToday } from '../../../services/guildService';
|
||||
import { findIndex, findWhere } from 'underscore';
|
||||
import { RoleModel } from '../../../db/Role';
|
||||
import Role from '../../../db/Role';
|
||||
import { getRoleOnlineInfo } from '../../../services/redisService';
|
||||
import { ARMY } from '../../../pubUtils/dicParam';
|
||||
import { guildInter } from '../../../pubUtils/interface';
|
||||
@@ -89,7 +89,7 @@ export class WishPoolHandler {
|
||||
const sid: string = session.get('sid');
|
||||
if (wishRoleId == dntRoleId)
|
||||
return resResult(STATUS.WRONG_PARMS);
|
||||
let role = await RoleModel.findByRoleId(wishRoleId);
|
||||
let role = await Role.findByRoleId(wishRoleId);
|
||||
if (!role)
|
||||
return resResult(STATUS.WRONG_PARMS);//没有玩家
|
||||
let wishUserGuild = await getUserGuildWithRefActive(wishRoleId, ' wishDntCnt wishGoods guildCode');
|
||||
|
||||
Reference in New Issue
Block a user