feat:充值记录、更新余额
This commit is contained in:
1 parent
8e12194caf
commit
6925cf0eca
7 files changed
+339
-129
No files matched your search
@@ -0,0 +1,5 @@
|
||||
export const convertToInteger = (num: number | string | undefined): number => {
|
||||
if (typeof num === 'undefined') return 0
|
||||
const parsedNumber = typeof num === 'string' ? parseFloat(num) : num
|
||||
return Math.round(parsedNumber * 100)
|
||||
}
|
||||
Reference in new issue
Block a user