|
@@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
namespace hd\controllers;
|
|
namespace hd\controllers;
|
|
|
|
|
|
|
|
|
|
+use bizGhs\notify\classes\NotifyClass;
|
|
|
|
|
+use bizGhs\order\classes\RefundOrderClass;
|
|
|
use bizHd\cg\classes\CgRefundClass;
|
|
use bizHd\cg\classes\CgRefundClass;
|
|
|
use bizHd\cg\classes\CgRefundItemClass;
|
|
use bizHd\cg\classes\CgRefundItemClass;
|
|
|
use bizHd\cg\services\CgRefundService;
|
|
use bizHd\cg\services\CgRefundService;
|
|
@@ -94,6 +96,13 @@ class CgRefundController extends BaseController
|
|
|
$post['shopAdminName'] = $adminName;
|
|
$post['shopAdminName'] = $adminName;
|
|
|
$respond = CgRefundService::createOrder($post, $cg);
|
|
$respond = CgRefundService::createOrder($post, $cg);
|
|
|
$transaction->commit();
|
|
$transaction->commit();
|
|
|
|
|
+
|
|
|
|
|
+ $saleRefundId = $respond->saleRefundId ?? 0;
|
|
|
|
|
+ $saleRefund = RefundOrderClass::getById($saleRefundId, true);
|
|
|
|
|
+ if (!empty($order) && !empty($saleRefund)) {
|
|
|
|
|
+ NotifyClass::addRefundApplyNotify($saleRefund);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
util::success($respond);
|
|
util::success($respond);
|
|
|
} catch (\Exception $exception) {
|
|
} catch (\Exception $exception) {
|
|
|
$transaction->rollBack();
|
|
$transaction->rollBack();
|