Commit d1f81eee by 郑建康(PHP)

修复慧收钱退费模块细节问题

1 parent 0eff903c
......@@ -53,6 +53,8 @@ return [
// 'base_url' => 'https://paytest.baofoo.com/baofoo-fopay/pay', //测试接口上线时取消注释
/* demo end */
/* 猎电 begin */
// 'member_id'=> '1272710', //商户号
// 'terminal_id' => '80808', //终端号
......@@ -61,6 +63,7 @@ return [
// 'private_key_pass' => 'Ldcharge888', //私钥密码
/* 猎电 end */
/* 猎维(智能充) begin */
'member_id'=> '1272712', //商户号
'terminal_id' => '80814', //终端号
......
......@@ -15,8 +15,8 @@ class RefundData extends HsqBaseData
protected function checkDataParam()
{
if (empty($this->transNo) || mb_strlen($this->transNo) > 30) throw new PayException('商户系统退款单号不能为空且长度不能超过30位');
// if (empty($this->origTransNo) || mb_strlen($this->origTransNo) > 30) throw new PayException('原商户系统订单号不能为空且长度不能超过30位');
if (empty($this->transNo) || mb_strlen($this->transNo) > 32) throw new PayException('商户系统退款单号不能为空且长度不能超过30位');
if (empty($this->origTransNo) || mb_strlen($this->origTransNo) > 32) throw new PayException('原商户系统订单号不能为空且长度不能超过30位');
$totalFee = intval($this->origOrderAmt ?? 0); //订单总金额
$refundFee = intval($this->orderAmt ?? 0); //退款总金额
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!