fix: 调整支付通道百分比手续费可为0

This commit is contained in:
xboard 2024-04-03 10:33:40 +08:00
parent a7709d06d1
commit 1e503f444b

View File

@ -62,14 +62,14 @@ class PaymentController extends Controller
'config' => 'required',
'notify_domain' => 'nullable|url',
'handling_fee_fixed' => 'nullable|integer',
'handling_fee_percent' => 'nullable|numeric|between:0.1,100'
'handling_fee_percent' => 'nullable|numeric|between:0,100'
], [
'name.required' => '显示名称不能为空',
'payment.required' => '网关参数不能为空',
'config.required' => '配置参数不能为空',
'notify_domain.url' => '自定义通知域名格式有误',
'handling_fee_fixed.integer' => '固定手续费格式有误',
'handling_fee_percent.between' => '百分比手续费范围须在0.1-100之间'
'handling_fee_percent.between' => '百分比手续费范围须在0-100之间'
]);
if ($request->input('id')) {
$payment = Payment::find($request->input('id'));