diff --git a/src/pages/number/setting.tsx b/src/pages/number/setting.tsx
index f41aeb748..5b093c617 100644
--- a/src/pages/number/setting.tsx
+++ b/src/pages/number/setting.tsx
@@ -235,9 +235,7 @@ const NumberSetting = () => {
{item.createTime ? dayjs(item.createTime).format('YYYY/MM/DD HH:mm:ss') : '-'}
|
-
- {formatPrice(item.price)}元
- |
+ {formatPrice(item.price)}元 |
{item.status} |
{item.status === 'NOTPAY' && (
@@ -269,6 +267,7 @@ const NumberSetting = () => {
|
时间 |
内容长度 |
+ Tokens 长度 |
消费 |
@@ -276,9 +275,8 @@ const NumberSetting = () => {
{bills.map((item) => (
{item.time} |
-
- {item.textLen}
- |
+ {item.textLen} |
+ {item.tokenLen} |
{item.price}元 |
))}
diff --git a/src/types/mongoSchema.d.ts b/src/types/mongoSchema.d.ts
index 4d7a8b373..dfe7210c4 100644
--- a/src/types/mongoSchema.d.ts
+++ b/src/types/mongoSchema.d.ts
@@ -83,6 +83,7 @@ export interface BillSchema {
chatId: string;
time: Date;
textLen: number;
+ tokenLen: number;
price: number;
}
diff --git a/src/types/user.d.ts b/src/types/user.d.ts
index f1573226d..f1a1e918a 100644
--- a/src/types/user.d.ts
+++ b/src/types/user.d.ts
@@ -25,6 +25,7 @@ export interface UserBillType {
id: string;
time: string;
textLen: number;
+ tokenLen: number;
userId: string;
chatId: string;
price: number;
diff --git a/src/utils/adapt.ts b/src/utils/adapt.ts
index aa4b9acbb..a5eb2550d 100644
--- a/src/utils/adapt.ts
+++ b/src/utils/adapt.ts
@@ -10,6 +10,7 @@ export const adaptBill = (bill: BillSchema): UserBillType => {
chatId: bill.chatId,
time: dayjs(bill.time).format('YYYY/MM/DD HH:mm:ss'),
textLen: bill.textLen,
+ tokenLen: bill.tokenLen,
price: formatPrice(bill.price)
};
};