Merge branch 'dev' into release
This commit is contained in:
commit
7bb9cc7488
|
|
@ -24,8 +24,8 @@ const checkers = [
|
|||
action: 'create',
|
||||
checker(data) {
|
||||
const { entity, entityId, price, orderId, depositId } = data;
|
||||
if (price <= 0) {
|
||||
throw new OakInputIllegalException('pay', ['price'], '支付金额必须大于0');
|
||||
if (price < 0) {
|
||||
throw new OakInputIllegalException('pay', ['price'], '支付金额必须不小于零');
|
||||
}
|
||||
if (!orderId) {
|
||||
// 充值类订单
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ const checkers = [
|
|||
action: 'create',
|
||||
checker(data) {
|
||||
const { entity, entityId, price, orderId, depositId } = data;
|
||||
if (price <= 0) {
|
||||
throw new types_1.OakInputIllegalException('pay', ['price'], '支付金额必须大于0');
|
||||
if (price < 0) {
|
||||
throw new types_1.OakInputIllegalException('pay', ['price'], '支付金额必须不小于零');
|
||||
}
|
||||
if (!orderId) {
|
||||
// 充值类订单
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oak-pay-business",
|
||||
"version": "2.5.5",
|
||||
"version": "2.5.6",
|
||||
"description": "",
|
||||
"files": [
|
||||
"lib/**/*",
|
||||
|
|
|
|||
Loading…
Reference in New Issue