...
|
...
|
@@ -95,7 +95,7 @@ class Pay extends Api |
|
|
// 用户是否支付成功
|
|
|
if ($successful) {
|
|
|
$orderInfoModel = new OrderInfo();
|
|
|
$goodsList = $orderInfoModel->where('order_id', $order['id'])->field('goods_id,number,ch_goods_name,type,score')->select();
|
|
|
$goodsList = $orderInfoModel->where('order_id', $order['id'])->field('goods_id,number,ch_goods_name,type,score,depot_id')->select();
|
|
|
$orderModel->notify($order['id'],$order['user_id'],$order['pay_total'],$goodsList);
|
|
|
}
|
|
|
return true; // 返回处理完成
|
...
|
...
|
@@ -216,7 +216,7 @@ class Pay extends Api |
|
|
// $orderNo = "2020060610056519";//商户系统内部的订单号(out_trade_no)
|
|
|
$refundNo = get_order_num().'3';//退款单号
|
|
|
if ($refundFee){
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100,$refundFee),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100,$refundFee*100),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
}else {
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
}
|
...
|
...
|
@@ -240,7 +240,7 @@ class Pay extends Api |
|
|
// $orderNo = "2020060610056519";//商户系统内部的订单号(out_trade_no)
|
|
|
$refundNo = get_order_num().'3';//退款单号
|
|
|
if ($refundFee){
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100,$refundFee),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100,$refundFee*100),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
}else {
|
|
|
$result = json_decode($payment->refund($orderNo, $refundNo, $total*100),true); // 总金额 100, 退款 80,refundFee可选(为空时全额退款)
|
|
|
}
|
...
|
...
|
|