koishi-plugin-monetary-bank 1.2.0 → 1.2.1
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/package.json +8 -8
- package/readme.md +4 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-monetary-bank",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"chatbot",
|
|
26
26
|
"koishi",
|
|
27
27
|
"plugin",
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
"bank",
|
|
29
|
+
"银行",
|
|
30
|
+
"金融",
|
|
31
|
+
"monetary",
|
|
32
|
+
"货币"
|
|
33
33
|
],
|
|
34
34
|
"author": {
|
|
35
35
|
"name": "BYWled",
|
|
36
36
|
"email": "bywled@qq.com",
|
|
37
37
|
"url": "https://github.com/BYWled"
|
|
38
38
|
},
|
|
39
|
-
"homepage": "https://github.com/BYWled/
|
|
39
|
+
"homepage": "https://github.com/BYWled/monetary-bank",
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
|
42
|
-
"url": "https://github.com/BYWled/
|
|
42
|
+
"url": "https://github.com/BYWled/monetary-bank"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"koishi": "4.18.9",
|
package/readme.md
CHANGED
|
@@ -6,23 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
`为 monetary 插件(或外部项目中的主货币表)提供轻量级银行功能,支持活期/定期存款与利息结算。`
|
|
8
8
|
|
|
9
|
-
**目录**
|
|
10
|
-
- 简介
|
|
11
|
-
- 特点
|
|
12
|
-
- 依赖
|
|
13
|
-
- 数据库表
|
|
14
|
-
- 快速安装
|
|
15
|
-
- 配置说明
|
|
16
|
-
- 命令一览
|
|
17
|
-
- API
|
|
18
|
-
- 利息结算
|
|
19
|
-
- 附加说明
|
|
20
|
-
- 更新日志
|
|
21
|
-
- 开发者/贡献
|
|
22
|
-
|
|
23
9
|
---
|
|
24
10
|
|
|
25
|
-
**版本**: v1.2.
|
|
11
|
+
**版本**: v1.2.1
|
|
26
12
|
|
|
27
13
|
**特点**
|
|
28
14
|
- **查询/存取**: 提供银行资产查询、存入(存为活期)、取出(仅活期)。
|
|
@@ -148,6 +134,9 @@ else console.error(`取款失败:${res2.error}`)
|
|
|
148
134
|
|
|
149
135
|
**更新日志**
|
|
150
136
|
|
|
137
|
+
- **1.2.1**
|
|
138
|
+
- 修复插件主页异常的问题
|
|
139
|
+
|
|
151
140
|
- **1.2.0**
|
|
152
141
|
- 新增:`MonetaryBankAPI` 类并导出为 `ctx.monetaryBank`(接口方法:`getBalance` / `deposit` / `withdraw`),所有方法返回统一格式 `{ success, newCash?, newBalance?, error? }`,便于其他插件以编程方式调用。
|
|
153
142
|
- 新增:在 `apply` 向 `Context` 注册 `monetaryBank`(`ctx.monetaryBank = new MonetaryBankAPI(ctx, config)`),并在类型声明中扩展 `Context`。
|