fix bug
This commit is contained in:
parent
87466c68ad
commit
ec3f954518
@ -9,7 +9,7 @@ import {HeroFun} from "../../public/hero";
|
||||
export const maxPosNum = 6;
|
||||
|
||||
export default async function (call: ApiCall<ReqChangePos, ResChangePos>) {
|
||||
let hero = await G.redis.get('hero', call.uid, call.req.id);
|
||||
let hero = await HeroFun.getHero(call, call.req.id)
|
||||
if (!hero) return call.error(globalThis.lng.hero_1);
|
||||
|
||||
let heroPos = Object.assign({}, call.conn.heroPos);
|
||||
|
Loading…
Reference in New Issue
Block a user