抽卡接口增加返回count

This commit is contained in:
zhl 2021-01-22 18:49:26 +08:00
parent 6cf709ff64
commit 5a9f164808
2 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,7 @@
[{
id: 11022, // 卡牌id
used: 1, // 是否已经自动激活卡或英雄, 1: 已自动激活 0: 未激活
count: 1000, // 数量
heroid: 111, // 激活的英雄id, 可能为空
cardid: 100 // 激活的卡id, 可能为空
}]

View File

@ -193,11 +193,13 @@ export default class CardController extends BaseController {
results.push({
id: item.id,
used: 1,
count: 1,
heroid: data.unlocking
})
} else {
results.push({
id: item.id,
count: 1,
used: 0
})
}
@ -209,11 +211,13 @@ export default class CardController extends BaseController {
results.push({
id: item.id,
used: 1,
count: 1,
cardid: data.unlocking
})
} else {
results.push({
id: item.id,
count: 1,
used: 0,
})
}