oak-pay-business 2.5.4 → 2.5.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.
@@ -24,8 +24,8 @@ const checkers = [
24
24
  action: 'create',
25
25
  checker(data) {
26
26
  const { entity, entityId, price, orderId, depositId } = data;
27
- if (price <= 0) {
28
- throw new OakInputIllegalException('pay', ['price'], '支付金额必须大于0');
27
+ if (price < 0) {
28
+ throw new OakInputIllegalException('pay', ['price'], '支付金额必须不小于零');
29
29
  }
30
30
  if (!orderId) {
31
31
  // 充值类订单
@@ -27,8 +27,8 @@ const checkers = [
27
27
  action: 'create',
28
28
  checker(data) {
29
29
  const { entity, entityId, price, orderId, depositId } = data;
30
- if (price <= 0) {
31
- throw new types_1.OakInputIllegalException('pay', ['price'], '支付金额必须大于0');
30
+ if (price < 0) {
31
+ throw new types_1.OakInputIllegalException('pay', ['price'], '支付金额必须不小于零');
32
32
  }
33
33
  if (!orderId) {
34
34
  // 充值类订单
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-pay-business",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib/**/*",
@@ -32,7 +32,7 @@
32
32
  "dayjs": "^1.11.5",
33
33
  "oak-domain": "^5.1.9",
34
34
  "oak-frontend-base": "^5.3.18",
35
- "oak-general-business": "~5.5.7",
35
+ "oak-general-business": "~5.5.6",
36
36
  "wechat-pay-nodejs": "^0.2.3"
37
37
  },
38
38
  "peerDependencies": {