|
|
|
@ -402,7 +402,10 @@ class AlipayTradeService extends CI_Controller
|
|
|
|
|
//没有分配订单之前先添加付款记录,这个过程可能会执行多次,必须在添加记录前查找是否有数据
|
|
|
|
|
if (!empty($orderid_info)) {
|
|
|
|
|
$currencyCode = str_replace("CNY", "RMB", trim(mb_strtoupper($item->ALI_currencyCode)));
|
|
|
|
|
$ssje = $this->Alipay_model->get_ssje($item->ALI_orderAmount, $currencyCode);
|
|
|
|
|
$ssje = $item->ALI_orderAmount;
|
|
|
|
|
if (intval($item->ALI_stateCode)!==1) {
|
|
|
|
|
$ssje = $this->Alipay_model->get_ssje($item->ALI_orderAmount, $currencyCode);
|
|
|
|
|
}
|
|
|
|
|
$USD_amount = $this->Alipay_model->get_USD($item->ALI_orderAmount, $currencyCode);
|
|
|
|
|
//更新还没有填的客邮和交易号de收款记录(商务订单)
|
|
|
|
|
if (isset($advisor_info->order_type) && $advisor_info->order_type == 0) {
|
|
|
|
@ -653,7 +656,7 @@ var_dump($response->$responseNode);
|
|
|
|
|
,"CNY"
|
|
|
|
|
,strval($query_pay->total_amount)
|
|
|
|
|
,NULL
|
|
|
|
|
,NULL
|
|
|
|
|
,1 // 此处1表示通过收款码进来的, 不收手续费, 后续录入时分别处理
|
|
|
|
|
,strval($query_pay->send_pay_date)
|
|
|
|
|
,strval($query_pay->send_pay_date)
|
|
|
|
|
,json_encode($query_pay)
|
|
|
|
|