diff --git a/webht/third_party/pay/controllers/WxpayService.php b/webht/third_party/pay/controllers/WxpayService.php index b0a95d86..ab1efaac 100644 --- a/webht/third_party/pay/controllers/WxpayService.php +++ b/webht/third_party/pay/controllers/WxpayService.php @@ -132,6 +132,7 @@ class WxpayService extends CI_Controller { $save_column['OPN_resultMsg'] = $row['refund_status']; $save_column['OPN_entryAmountCNY'] = floatval("-" . $ssje); $save_column['OPN_noticeType'] = 'refund'; + $save_column['OPN_relatedId'] = $row['transaction_id']; } else { // 收款 $ssje = $this->account_model->get_ssje($row['settlement_total_fee'], str_replace("CNY", "RMB", strtoupper($row['currency_type'])), $save_column['OPN_accountMethod']); @@ -142,6 +143,7 @@ class WxpayService extends CI_Controller { $save_column['OPN_resultMsg'] = $row['trade_state']; $save_column['OPN_entryAmountCNY'] = floatval($ssje); $save_column['OPN_noticeType'] = 'pay'; + $save_column['OPN_relatedId'] = ''; } $save_column['OPN_noticeSendStatus'] = 'unsend'; $save_column['OPN_transactionResult'] = 'completed';