dsh-tokenbank 0.1.25 → 0.1.26

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.
Files changed (2) hide show
  1. package/lib/client.js +7 -7
  2. 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[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 = (typeof creditNano === 'number' && creditNano > 0) ? Math.round(creditNano / 1e6) : RECHARGE_HINTS[fen]
438
431
  // tokens 单位:万。creditNano 是 nanoUSD,1 TOKEN≈1e6 nano
@@ -456,6 +449,13 @@ window.__ModuleLoader__.load({
456
449
  var busy = React.useState(false)
457
450
  var err = React.useState('')
458
451
  var packs = React.useState(null) // [{fen, usd, tokens}]
452
+ function pickedCredit(fen) {
453
+ var list = packs[0] || []
454
+ for (var i = 0; i < list.length; i++) {
455
+ if (list[i].fen === fen && typeof list[i].creditNano === 'number') return list[i].creditNano
456
+ }
457
+ return undefined
458
+ }
459
459
  React.useEffect(function () {
460
460
  var stopped = false
461
461
  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.25",
3
+ "version": "0.1.26",
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",