-
Notifications
You must be signed in to change notification settings - Fork 2k
添加插件:银行 #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
添加插件:银行 #1195
Conversation
能够否与AnimeA{I/wallet整合? |
是将那个贷款期间禁止转账的函数移到AnimeAPI/wallet里面吗 |
我是指扩展 wallet,在相同位置新建一个数据库或表,将 bank 相关逻辑都移进去。 |
目前的 yaml 不是很适合管理每次仅需变动一小部分的数据,用数据库更合适。 |
能否用官方的sql库,还是说用zbp的sql库更好 |
可以用gorm,sqlite zbp用的是目前唯一的纯go解决方案。 |
源神啥时候统一一下zbp的货币,其他的插件我看赚米都是几k几k的赚,有的插件就是只能每次赚十几个(签到),而且还没地方花 |
我正在写的股票插件可以用来花atri币,目前也写完基础功能了,但我用的是yaml。源说最好用zbp的sql库。现在我也没什么时间去重构整个插件了,看看以后有时间吧。 |
你要是没时间先合并也不是不行 |
README.md
Outdated
@@ -645,17 +672,6 @@ print("run[CQ:image,file="+j["img"]+"]") | |||
|
|||
- [x] 磕cp大老师 雪乃 | |||
|
|||
</details> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个误删了
|
||
// 添加自动扣款任务 | ||
autoDeductLoanPayment() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议将storage加到这个文件末尾,这个文件太单薄了。
plugin/bank/main.go
Outdated
interestPath = engine.DataFolder() + "interest.yaml" | ||
accounts = make(map[int64]*Account) // 内存中的账户数据 | ||
dailyInterest = &InterestInfo{CurrentRate: 0.01} // 默认活期利率 1% | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
将command移到main末尾。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okok,我顺便优化一些东西
谢谢老大! |
No description provided.