|
|
|
@ -44,15 +44,18 @@ class RefundRequest |
|
|
|
if(empty($this->data['org_order_id'])) { |
|
|
|
if(empty($this->data['org_order_id'])) { |
|
|
|
throw new ParamsException('原交易订单号不能为空', 'org_order_id'); |
|
|
|
throw new ParamsException('原交易订单号不能为空', 'org_order_id'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$params['org_order_id'] = $this->data['org_order_id']; |
|
|
|
if(!empty($params['trans_type'])) { |
|
|
|
if(!empty($params['trans_type'])) { |
|
|
|
$params['trans_type'] = $this->data['trans_type']; |
|
|
|
$params['trans_type'] = $this->data['trans_type']; |
|
|
|
} |
|
|
|
} |
|
|
|
if(empty($this->data['trans_amt'])) { |
|
|
|
if(empty($this->data['trans_amt'])) { |
|
|
|
throw new ParamsException('退款金额不能为空', 'trans_amt'); |
|
|
|
throw new ParamsException('退款金额不能为空', 'trans_amt'); |
|
|
|
} |
|
|
|
} |
|
|
|
if(!empty($params['div_details'])) { |
|
|
|
$params['trans_amt'] = $this->data['trans_amt']; |
|
|
|
$params['div_details'] = json_encode($this->data['div_details'], JSON_UNESCAPED_UNICODE); |
|
|
|
if(empty($this->data['div_details'])) { |
|
|
|
|
|
|
|
throw new ParamsException('退款明细不能为空', 'div_details'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$params['div_details'] = json_encode($this->data['div_details'], JSON_UNESCAPED_UNICODE); |
|
|
|
if(!empty($this->data['remark'])) { |
|
|
|
if(!empty($this->data['remark'])) { |
|
|
|
$params['remark'] = $this->data['remark']; |
|
|
|
$params['remark'] = $this->data['remark']; |
|
|
|
} |
|
|
|
} |
|
|
|
|