后台:拉取物品表

This commit is contained in:
luying
2021-06-08 16:32:57 +08:00
parent 8c35bd1430
commit 326d9548ce
4 changed files with 23 additions and 1 deletions
+12
View File
@@ -54,6 +54,18 @@ export default class Game extends Service {
})
}
public async getDicGoods() {
let list = [];
for(let [_, { good_id, name, pieceId, quality, itid, image_id }] of gameData.goods) {
list.push({
good_id, name, pieceId, quality, itid, image_id
})
}
return this.ctx.service.utils.resResult(STATUS.SUCCESS, {
list
})
}
public async getDicRmb() {
let list: DicRMB[] = [];
for(let [_, dicRmb] of gameData.rmb) {