Skip to content

Commit d6f1d32

Browse files
author
zhusha
committed
fix:函数错误
1 parent 52f867f commit d6f1d32

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jx3box/jx3box-facedat",
3-
"version": "2.6.5",
3+
"version": "2.6.6",
44
"description": "JX3BOX Facedat viewer",
55
"main": "index.js",
66
"scripts": {

src/DecalDatabase.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,15 @@ export class DecalDatabase {
253253
return ~~(item?.CoinPrice || 0);
254254
}
255255

256+
/**
257+
* 获取装饰物价格(向后兼容)
258+
* @param {number} id - 装饰物 ID
259+
* @returns {number} 价格(通宝)
260+
*/
261+
showDecorationPrice(id) {
262+
return this.getDecorationPrice(id);
263+
}
264+
256265
/**
257266
* 计算面部数据总价格
258267
* @param {Object} data - 面部数据对象

0 commit comments

Comments
 (0)