|
|
@@ -18,7 +18,7 @@
|
|
|
namespace app\common\logic;
|
|
|
|
|
|
|
|
|
-
|
|
|
+use app\common\service\pay\MixedPayService;
|
|
|
use app\common\enum\AfterSaleEnum;
|
|
|
use app\common\enum\AfterSaleLogEnum;
|
|
|
use app\common\enum\DeliveryEnum;
|
|
|
@@ -231,11 +231,11 @@ class RefundLogic extends BaseLogic
|
|
|
public static function mixedPayRefund($order, $refundAmount, $afterSaleId)
|
|
|
{
|
|
|
try {
|
|
|
- $mixedPayService = new MixedPayService($order['order_terminal'], $order['user_id']);
|
|
|
- $result = $mixedPayService->refund($order, $refundAmount, $afterSaleId);
|
|
|
+ $mixedPayServiceModel = new MixedPayService($order['order_terminal'], $order['user_id']);
|
|
|
+ $result = $mixedPayServiceModel->refund($order, $refundAmount, $afterSaleId);
|
|
|
|
|
|
if ($result === false) {
|
|
|
- throw new \Exception('混合支付退款失败:' . $mixedPayService->getError());
|
|
|
+ throw new \Exception('混合支付退款失败:' . $mixedPayServiceModel->getError());
|
|
|
}
|
|
|
|
|
|
return true;
|