修正随机获取机器人接口的一个bug
This commit is contained in:
parent
b7f2fd0d95
commit
4ebf1c3626
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user