修正随机获取机器人接口的一个bug

This commit is contained in:
zhl 2021-01-29 13:53:19 +08:00
parent b7f2fd0d95
commit 4ebf1c3626
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ export default class AccountController extends BaseController {
}
await setGameing(accountid)
return {
accounid: account._id,
accountid: account._id,
nickname: account.nickname,
avatar: account.avatar,
score: account.season_score

View File

@ -33,7 +33,7 @@ export default class RecordController extends BaseController {
return
}
let cfg: MatchCfg = global.$cfg.get(BaseConst.MATCH).get(parseInt(record.matchid))
if (cfg) {
if (!cfg) {
error(`match cfg not found: ${record.matchid}`)
}
const fc = global.$cfg.get(BaseConst.FORMULA)