dsh-tokenbank 0.1.29 → 0.1.31
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 +7 -7
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -426,13 +426,6 @@ window.__ModuleLoader__.load({
|
|
|
426
426
|
}
|
|
427
427
|
/** 当前档位提示:用户固定的四组文案。 */
|
|
428
428
|
var RECHARGE_HINTS = { 1000: 38460000, 5000: 192300000, 10000: 384600000, 30000: 1154000000 }
|
|
429
|
-
function pickedCredit(fen) {
|
|
430
|
-
var list = packs && packs[0] || []
|
|
431
|
-
for (var i = 0; i < list.length; i++) {
|
|
432
|
-
if (list[i].fen === fen && typeof list[i].creditNano === 'number') return list[i].creditNano
|
|
433
|
-
}
|
|
434
|
-
return undefined
|
|
435
|
-
}
|
|
436
429
|
function rechargeHint(fen, creditNano) {
|
|
437
430
|
var tokens = RECHARGE_HINTS[fen]
|
|
438
431
|
var usd = (creditNano ? creditNano / 1e9 : (fen / 100 / 6.5)).toFixed(2)
|
|
@@ -452,6 +445,13 @@ window.__ModuleLoader__.load({
|
|
|
452
445
|
var busy = React.useState(false)
|
|
453
446
|
var err = React.useState('')
|
|
454
447
|
var packs = React.useState(null) // [{fen, usd, tokens}]
|
|
448
|
+
function pickedCredit(fen) {
|
|
449
|
+
var list = packs && packs[0] || []
|
|
450
|
+
for (var i = 0; i < list.length; i++) {
|
|
451
|
+
if (list[i].fen === fen && typeof list[i].creditNano === 'number') return list[i].creditNano
|
|
452
|
+
}
|
|
453
|
+
return undefined
|
|
454
|
+
}
|
|
455
455
|
React.useEffect(function () {
|
|
456
456
|
var stopped = false
|
|
457
457
|
Promise.all([api('recharge-config').catch(function () { return null }), api('wordcoin-market').catch(function () { return null })])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
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",
|