Skip to content

Commit 0f1d027

Browse files
committed
新增插件银行
1 parent 35292a6 commit 0f1d027

8 files changed

Lines changed: 1431 additions & 12 deletions

File tree

README.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,33 @@ print("run[CQ:image,file="+j["img"]+"]")
520520

521521
检测类型编号列表:[1:违禁违规|2:文本色情|3:敏感信息|4:恶意推广|5:低俗辱骂|6:恶意推广-联系方式|7:恶意推广-软文推广]
522522
</details>
523+
524+
<details>
525+
<summary>bank</summary>
526+
527+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/bank"`
528+
529+
- [x] 银行活期存款 [金额]
530+
531+
- [x] 银行定期存款 [金额] [期限(3/7/15/30天)]
532+
533+
- [x] 银行活期取款 [金额/全部]
534+
535+
- [x] 银行定期取款 [全部] [定期款序列号]
536+
537+
- [x] 银行贷款 [金额] [期限(天)]
538+
539+
- [x] 银行还款 [金额]
540+
541+
- [x] 查看我的存款
542+
543+
- [x] 查看我的贷款
544+
545+
- [x] 查看今日利率
546+
547+
- [x] 我要信仰之跃
548+
</details>
549+
523550
<details>
524551
<summary>base64卦加解密</summary>
525552

@@ -645,17 +672,6 @@ print("run[CQ:image,file="+j["img"]+"]")
645672

646673
- [x] 磕cp大老师 雪乃
647674

648-
</details>
649-
<details>
650-
<summary>奇怪语言加解密</summary>
651-
652-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/crypter"`
653-
654-
- [x] 齁语加密 [文本] 或 h加密 [文本]
655-
- [x] 齁语解密 [密文] 或 h解密 [密文]
656-
- [x] fumo加密 [文本]
657-
- [x] fumo解密 [文本]
658-
659675
</details>
660676
<details>
661677
<summary>今日早报</summary>

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import (
7373
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/animetrace" // AnimeTrace 动画/Galgame识别
7474
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/autowithdraw" // 触发者撤回时也自动撤回
7575
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baiduaudit" // 百度内容审核
76+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/bank" // 银行
7677
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base16384" // base16384加解密
7778
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base64gua" // base64卦加解密
7879
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baseamasiro" // base天城文加解密

plugin/bank/bank.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// bank 包提供银行相关的核心功能,包括存款、取款、贷款等操作。
2+
package bank
3+
4+
import (
5+
"os"
6+
)
7+
8+
func init() {
9+
// 初始化数据目录
10+
_ = os.MkdirAll(accountPath, 0755)
11+
12+
// 加载账户数据
13+
loadAllAccounts()
14+
15+
// 加载利息信息
16+
loadInterestInfo()
17+
18+
// 启动定时任务
19+
initCronJobs()
20+
21+
processLoanOverdue()
22+
23+
// 添加自动扣款任务
24+
autoDeductLoanPayment()
25+
}

0 commit comments

Comments
 (0)