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