dsh-tokenbank 0.1.16 → 0.1.18
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/docs/screenshots/account-popup.webp +0 -0
- package/lib/client.js +10 -5
- package/package.json +1 -1
|
Binary file
|
package/lib/client.js
CHANGED
|
@@ -595,11 +595,16 @@ window.__ModuleLoader__.load({
|
|
|
595
595
|
api('status').then(function (data) {
|
|
596
596
|
if (!stopped) { st[1](data); tbStore.set({ loggedIn: Boolean(data.loggedIn), portalUrl: data.portalUrl }) }
|
|
597
597
|
}).catch(function () {})
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
598
|
+
var pull = function () {
|
|
599
|
+
api('checkin-status').then(function (res) {
|
|
600
|
+
var ci = res && res.checkin
|
|
601
|
+
if (!stopped && ci && ci.enabled && ci.checked_today) checkin[1]({ busy: false, done: true })
|
|
602
|
+
else if (!stopped && ci && ci.enabled) checkin[1]({ busy: false, done: false })
|
|
603
|
+
}).catch(function () {})
|
|
604
|
+
}
|
|
605
|
+
pull()
|
|
606
|
+
var timer = setInterval(pull, 60000)
|
|
607
|
+
return function () { stopped = true; clearInterval(timer) }
|
|
603
608
|
}, [snap.authOpen])
|
|
604
609
|
if (!snap.authOpen || !runtimeCtx) return null
|
|
605
610
|
var close = function () { tbStore.set({ authOpen: false }) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
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",
|