|
|
|
@ -54,7 +54,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_orderId'] = $xml_arr['out_trade_no'];
|
|
|
|
|
$save_column['OPN_rawOrderId'] = $xml_arr['out_trade_no'];
|
|
|
|
|
$save_column['OPN_invoiceId'] = $xml_arr['out_trade_no'];
|
|
|
|
|
$save_column['OPN_subject'] = isset($xml_arr['attach']) ? $xml_arr['attach'] : '';
|
|
|
|
|
$save_column['OPN_subject'] = ''; // isset($xml_arr['attach']) ? $xml_arr['attach'] : '';
|
|
|
|
|
$save_column['OPN_currency'] = $xml_arr['fee_type'];
|
|
|
|
|
$save_column['OPN_orderAmount'] = $xml_arr['total_fee'];
|
|
|
|
|
$save_column['OPN_payAmount'] = $xml_arr['total_fee'];
|
|
|
|
@ -65,7 +65,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_errMsg'] = isset($xml_arr['err_code_des']) ? $xml_arr['err_code_des'] : NULL;
|
|
|
|
|
$save_column['OPN_acquiringTime'] = date('Y-m-d H:i:s',strtotime($xml_arr['time_end']));
|
|
|
|
|
$save_column['OPN_completeTime'] = date('Y-m-d H:i:s',strtotime($xml_arr['time_end']));
|
|
|
|
|
$save_column['OPN_remark'] = isset($xml_arr['attach']) ? $xml_arr['attach'] : '';
|
|
|
|
|
$save_column['OPN_remark'] = ''; // isset($xml_arr['attach']) ? $xml_arr['attach'] : '';
|
|
|
|
|
$save_column['OPN_payerLogId'] = $xml_arr['openid'];
|
|
|
|
|
$save_column['OPN_payerStatus'] = $xml_arr['is_subscribe']==='Y' ? "subscribed" : NULL;
|
|
|
|
|
$save_column['OPN_fundSource'] = $site;
|
|
|
|
@ -134,7 +134,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
foreach ($all_bill as $key => $row) {
|
|
|
|
|
$save_column = array();
|
|
|
|
|
$save_column['OPN_accountMethod'] = $this->config->item('method_code', 'wxpay');
|
|
|
|
|
if ($row['refund_id'] != '0') {
|
|
|
|
|
if (isset($row['refund_id']) && $row['refund_id'] != '0') {
|
|
|
|
|
// 退款
|
|
|
|
|
$save_column['OPN_transactionId'] = $row['refund_id'];
|
|
|
|
|
$save_column['OPN_orderAmount'] = "-" . $row['settlement_refund_fee'];
|
|
|
|
@ -176,7 +176,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_currency'] = $row['currency_type'];
|
|
|
|
|
$save_column['OPN_acquiringTime'] = date('Y-m-d H:i:s',strtotime($row['complete_time']));
|
|
|
|
|
$save_column['OPN_completeTime'] = date('Y-m-d H:i:s',strtotime($row['complete_time']));
|
|
|
|
|
$save_column['OPN_remark'] = $row['attach'];
|
|
|
|
|
$save_column['OPN_remark'] = ''; // $row['attach'];
|
|
|
|
|
$save_column['OPN_payerLogId'] = $row['openid'];
|
|
|
|
|
$save_column['OPN_fundSource'] = $target_account;
|
|
|
|
|
$save_column['OPN_rawContent'] = json_encode($row);
|
|
|
|
|