koishi-plugin-rina-currency 0.0.5 → 0.0.6
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/lib/index.js +1 -3
- package/package.json +6 -1
package/lib/index.js
CHANGED
|
@@ -163,7 +163,6 @@ function formatSnapshot(snapshot, defaultBank, rateType) {
|
|
|
163
163
|
const sign = difference >= 0 ? "+" : "";
|
|
164
164
|
lines.push(`工行较中行:${sign}${formatRate(difference)}(购汇 100,000 JPY 约${difference >= 0 ? "多" : "少"} ${formatMoney(Math.abs(difference) * 1e3)} CNY)`);
|
|
165
165
|
}
|
|
166
|
-
lines.push("数据来源:中国银行、工商银行;实际成交以银行渠道为准。");
|
|
167
166
|
return lines.join("\n");
|
|
168
167
|
}
|
|
169
168
|
__name(formatSnapshot, "formatSnapshot");
|
|
@@ -173,8 +172,7 @@ function formatCost(amount, quote, type) {
|
|
|
173
172
|
`按${BANK_LABELS[quote.bank]}${RATE_TYPE_LABELS[type]}计算:`,
|
|
174
173
|
`${amount.toLocaleString("zh-CN")} JPY ≈ ${formatMoney(costForYen(amount, quote, type))} CNY`,
|
|
175
174
|
`牌价:100 JPY = ${formatRate(quote[type])} CNY`,
|
|
176
|
-
`牌价时间:${formatDateTime(quote.publishedAt)}
|
|
177
|
-
"实际成交以银行渠道为准。"
|
|
175
|
+
`牌价时间:${formatDateTime(quote.publishedAt)}`
|
|
178
176
|
].join("\n");
|
|
179
177
|
}
|
|
180
178
|
__name(formatCost, "formatCost");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-rina-currency",
|
|
3
3
|
"description": "面向购汇决策的日元汇率插件,基于中行和工行数据",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"homepage": "https://github.com/738NGX/rinachanbot",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/738NGX/rinachanbot.git"
|
|
16
|
+
},
|
|
12
17
|
"scripts": {
|
|
13
18
|
"typecheck": "tsc --noEmit"
|
|
14
19
|
},
|