fix 刷对手时需要显示对手的所有武将

This commit is contained in:
luying
2021-01-15 15:46:58 +08:00
parent 2e501014b0
commit a274d936d2
5 changed files with 53 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
// 一些通用的interface定义
import { reduceCe } from "./util";
import { PvpEnemies } from "../db/generalField";
import { PvpEnemies, PvpHeroInfo, PvpOtherHeroes } from "../db/generalField";
export interface RewardInter {
id: number;
@@ -128,7 +128,7 @@ export class PlayerDetailHero {
quality: number;
score: number;
setPvpHeroInfo?(hero: PvpEnemies) {
setPvpHeroInfo?(hero: PvpEnemies|PvpOtherHeroes) {
this.actorId = hero.actorId;
this.lv = hero.lv;
this.star = hero.star;