pvp: 更改pvpdefense结构
This commit is contained in:
@@ -100,17 +100,17 @@ export default class UserController extends Controller {
|
||||
ctx.body = await ctx.service.users.setHeroJob(roleIdAndHids, job);
|
||||
}
|
||||
|
||||
public async saveHeroToDefense() {
|
||||
const { ctx } = this;
|
||||
const { roleId, roleName, hid } = ctx.request.body;
|
||||
ctx.body = await ctx.service.users.saveHeroToDefense(roleId, roleName, hid);
|
||||
}
|
||||
// public async saveHeroToDefense() {
|
||||
// const { ctx } = this;
|
||||
// const { roleId, roleName, hid } = ctx.request.body;
|
||||
// ctx.body = await ctx.service.users.saveHeroToDefense(roleId, roleName, hid);
|
||||
// }
|
||||
|
||||
public async removeHeroFromDefense() {
|
||||
const { ctx } = this;
|
||||
const { roleId, hid } = ctx.request.body;
|
||||
ctx.body = await ctx.service.users.removeHeroFromDefense(roleId, hid);
|
||||
}
|
||||
// public async removeHeroFromDefense() {
|
||||
// const { ctx } = this;
|
||||
// const { roleId, hid } = ctx.request.body;
|
||||
// ctx.body = await ctx.service.users.removeHeroFromDefense(roleId, hid);
|
||||
// }
|
||||
|
||||
public async getEquipList() {
|
||||
const { ctx } = this;
|
||||
|
||||
Reference in New Issue
Block a user