|
@@ -1585,12 +1585,12 @@ class Order extends Api |
|
@@ -1585,12 +1585,12 @@ class Order extends Api |
1585
|
$userModel = new \app\api\model\User();
|
1585
|
$userModel = new \app\api\model\User();
|
1586
|
if ($orderInfo['pay_type'] == 1){
|
1586
|
if ($orderInfo['pay_type'] == 1){
|
1587
|
//微信退款
|
1587
|
//微信退款
|
1588
|
- $result = $pay->refund($orderInfo['order_num'],$orderInfo['pay_total'],$refund_note,$orderInfo['goods_total']);
|
1588
|
+ $result = $pay->refundGoods($orderInfo['order_num'],$orderInfo['pay_total'],$orderInfo['id'],$refund_note,$orderInfo['goods_total']);
|
1589
|
}else{
|
1589
|
}else{
|
1590
|
//余额退款
|
1590
|
//余额退款
|
1591
|
- $result = $userModel->refund($orderInfo['user_id'],$orderInfo['goods_total'],$orderInfo['id'],$refund_note);
|
1591
|
+ $result = $userModel->refundGoods($orderInfo['user_id'],$orderInfo['goods_total'],$orderInfo['id'],$refund_note);
|
1592
|
}
|
1592
|
}
|
1593
|
- $msg = '确认收货';
|
1593
|
+ $msg = '退款';
|
1594
|
}else{
|
1594
|
}else{
|
1595
|
//提交审核
|
1595
|
//提交审核
|
1596
|
$result = $orderInfoModel->where('id',$order_info_id)->update(['status'=>'2','refund_note'=>$refund_note,'refund_time' => time()]);
|
1596
|
$result = $orderInfoModel->where('id',$order_info_id)->update(['status'=>'2','refund_note'=>$refund_note,'refund_time' => time()]);
|