修正抽卡接口的bug

This commit is contained in:
zhl 2021-01-22 19:41:01 +08:00
parent f119b61be3
commit b0a1344495
2 changed files with 7 additions and 2 deletions

View File

@ -81,4 +81,9 @@ export default class ItemController extends BaseController {
await record.save()
return record.toJson()
}
@router('post /svr/:accountid/randomhero')
async randomHero(req: any) {
}
}

View File

@ -180,13 +180,13 @@ class UserClass extends FindOrCreate {
return result
}
if (!card) {
const card = new Card()
card = new Card()
card.cardid = cardid
card.owned = true
card.ban = false
card.usetype = 0
card.free = false
card.count = 0
card.count = 1
card.free_expire = 0
card.time = Date.now()
} else {