Merge branch 'dev' into release

This commit is contained in:
Xu Chang 2024-11-19 15:53:16 +08:00
commit 7bb9cc7488
3 changed files with 5 additions and 5 deletions

View File

@ -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) {
// 充值类订单

View File

@ -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) {
// 充值类订单

View File

@ -1,6 +1,6 @@
{
"name": "oak-pay-business",
"version": "2.5.5",
"version": "2.5.6",
"description": "",
"files": [
"lib/**/*",