dsh-tokenbank 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +4 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -427,10 +427,10 @@ window.__ModuleLoader__.load({
|
|
|
427
427
|
/** 当前档位提示:用户固定的四组文案。 */
|
|
428
428
|
var RECHARGE_HINTS = { 1000: 38460000, 5000: 192300000, 10000: 384600000, 30000: 1154000000 }
|
|
429
429
|
function rechargeHint(fen, creditNano) {
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
// 换算固定用原四组值(万 TOKEN):$1=¥6.50,1 TOKEN≈1e6 nano
|
|
431
|
+
var tokens = RECHARGE_HINTS[fen]
|
|
432
432
|
var usd = (creditNano ? creditNano / 1e9 : (fen / 100 / 6.5)).toFixed(2)
|
|
433
|
-
return '获得 $' + usd + '
|
|
433
|
+
return '获得 $' + usd + ' ≈ ' + humanTokens(tokens) + ' TOKEN'
|
|
434
434
|
}
|
|
435
435
|
function humanTokens(wan) {
|
|
436
436
|
return wan >= 10000 ? (wan / 10000).toFixed(1).replace(/\.0$/, '') + '亿' : Math.round(wan) + '万'
|
|
@@ -539,7 +539,7 @@ window.__ModuleLoader__.load({
|
|
|
539
539
|
style: Object.assign({}, buttonStyle, {
|
|
540
540
|
flex: '1 1 calc(50% - 6px)', justifyContent: 'center',
|
|
541
541
|
fontWeight: picked[0] === pk.fen ? 700 : 400,
|
|
542
|
-
borderColor: picked[0] === pk.fen ? '#ff4f1f' :
|
|
542
|
+
borderColor: picked[0] === pk.fen ? '#ff4f1f' : 'var(--dsw-alias-border-l2, #c9ccd1)',
|
|
543
543
|
color: picked[0] === pk.fen ? '#ff4f1f' : undefined,
|
|
544
544
|
}),
|
|
545
545
|
onClick: function () { picked[1](pk.fen) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "DSH 免费模型:一键注册 TokenBank 领免费 APIKey 送 $5 体验金,免费 GLM 模型直接进模型列表;自带余额查询、API Key 密钥托管(临时额度转永久)、每日签到、充值入口(支付宝),获取免费模型无需自建中转。致敬 dsh-our-free-model。官网 https://bank.skillpie.cn",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|