|
|
|
@ -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'] = $xml_arr['attach'] ? $xml_arr['attach'] : $xml_arr['out_trade_no'];
|
|
|
|
|
$save_column['OPN_subject'] = $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'] = $xml_arr['attach'] ? $xml_arr['attach'] : $xml_arr['out_trade_no'];
|
|
|
|
|
$save_column['OPN_remark'] = $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;
|
|
|
|
@ -77,6 +77,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_noticeSendStatus'] = 'unsend';
|
|
|
|
|
$save_column['OPN_noticeSendTime'] = NULL;
|
|
|
|
|
$save_column['OPN_accountMethod'] = $this->config->item('method_code', 'wxpay');
|
|
|
|
|
$save_column['OPN_paymentSource'] = $xml_arr['bank_type'];
|
|
|
|
|
if ( $this->note_model->insert_note($save_column) ) {
|
|
|
|
|
$response['return_code'] = 'SUCCESS';
|
|
|
|
|
$response['return_msg'] = 'OK';
|
|
|
|
@ -151,6 +152,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_entryAmountCNY'] = floatval($ssje);
|
|
|
|
|
$save_column['OPN_noticeType'] = 'pay';
|
|
|
|
|
$save_column['OPN_relatedId'] = '';
|
|
|
|
|
$save_column['OPN_paymentSource'] = $row['bank_type'];
|
|
|
|
|
}
|
|
|
|
|
$save_column['OPN_noticeSendStatus'] = 'unsend';
|
|
|
|
|
$save_column['OPN_transactionResult'] = 'completed';
|
|
|
|
@ -167,7 +169,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
$save_column['OPN_rawContent'] = json_encode($row);
|
|
|
|
|
$save_column['OPN_noticeTime'] = date('Y-m-d H:i:s');
|
|
|
|
|
|
|
|
|
|
$this->note_model->insert_note($save_column) ;
|
|
|
|
|
$this->note_model->insert_note($save_column);
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|