Skip to content

Commit 0f72bb6

Browse files
committed
新增插件银行
1 parent 1f66f47 commit 0f72bb6

8 files changed

Lines changed: 1516 additions & 1 deletion

File tree

README.md

Lines changed: 27 additions & 0 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

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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package bank
2+
3+
import (
4+
"os"
5+
)
6+
7+
func init() {
8+
// 初始化数据目录
9+
_ = os.MkdirAll(accountPath, 0755)
10+
11+
// 加载账户数据
12+
loadAllAccounts()
13+
14+
// 加载利息信息
15+
loadInterestInfo()
16+
17+
// 启动定时任务
18+
initCronJobs()
19+
20+
processLoanOverdue()
21+
22+
// 添加自动扣款任务
23+
autoDeductLoanPayment()
24+
}

0 commit comments

Comments
 (0)