This commit is contained in:
dy 2023-12-15 22:41:20 +08:00
parent 87466c68ad
commit ec3f954518

View File

@ -9,7 +9,7 @@ import {HeroFun} from "../../public/hero";
export const maxPosNum = 6; export const maxPosNum = 6;
export default async function (call: ApiCall<ReqChangePos, ResChangePos>) { 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); if (!hero) return call.error(globalThis.lng.hero_1);
let heroPos = Object.assign({}, call.conn.heroPos); let heroPos = Object.assign({}, call.conn.heroPos);