koishi-plugin-monetary-admin 1.4.0 → 1.4.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/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -177,8 +177,8 @@ function apply(ctx) {
|
|
|
177
177
|
return '请输入货币类型。';
|
|
178
178
|
if (!amount)
|
|
179
179
|
return '请输入金额。';
|
|
180
|
-
if (amount <= 0)
|
|
181
|
-
return '
|
|
180
|
+
if (amount <= 0 || amount > 100000)
|
|
181
|
+
return '转账金额必须在 1 到 100000 之间。';
|
|
182
182
|
const senderUid = session.user.id;
|
|
183
183
|
const { uid: targetUid, name: targetName } = await resolveUser(target);
|
|
184
184
|
if (senderUid === targetUid)
|