Merge branch 'master' of http://git.kingsome.cn/node/card_info_svr
This commit is contained in:
commit
6568dcd59b
@ -4,7 +4,7 @@ import { BaseConst } from '../constants/BaseConst'
|
|||||||
import { ZError } from '../common/ZError'
|
import { ZError } from '../common/ZError'
|
||||||
import { MatchCfg } from '../cfg/parsers/MatchCfg'
|
import { MatchCfg } from '../cfg/parsers/MatchCfg'
|
||||||
import { BagItem } from '../models/BagItem'
|
import { BagItem } from '../models/BagItem'
|
||||||
import { checkGameing, setGameing } from '../service/rank'
|
import { checkGameing, setGameEnd } from '../service/rank'
|
||||||
|
|
||||||
export default class MatchController extends BaseController {
|
export default class MatchController extends BaseController {
|
||||||
|
|
||||||
@ -33,4 +33,12 @@ export default class MatchController extends BaseController {
|
|||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@router('post /svr/:accountid/leftgame')
|
||||||
|
async userLeft(req: any) {
|
||||||
|
let { accountid, roomid } = req.params
|
||||||
|
console.log(`${roomid} player ${accountid} left game manul`)
|
||||||
|
await setGameEnd(accountid)
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user