提交 48a66d55 编写于 作者: View Design's avatar View Design

Wed Apr 9 08:57:00 CST 2025 inscode

上级 669eac6d
console.log("欢迎来到 InsCode");
\ No newline at end of file
function equalToken(model) {
let unitPrice = 1/1000000; // 1token 是多少钱
if (model.currency === 'USD') {
const exchangeRate = 7;
return (model.price / unitPrice) / exchangeRate;
}
return model.price / unitPrice;
}
const model = {
price: 0.0014,
currency: 'USD'
}
const token = equalToken(model);
console.log(token);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册