|
|
@@ -415,6 +415,7 @@ class RefundController extends BaseController
|
|
|
|
|
|
/**
|
|
|
* 商城顾客售后审核通过:执行真实退款
|
|
|
+ * 成功返回资金落地字段,供前端跳转 forwardResult(线下选手选 / 已返充凭证)
|
|
|
*/
|
|
|
public function actionPass()
|
|
|
{
|
|
|
@@ -443,11 +444,15 @@ class RefundController extends BaseController
|
|
|
'sjId' => (int)$this->sjId,
|
|
|
'mainId' => (int)$this->mainId,
|
|
|
];
|
|
|
- HdRefundMallClass::approve($refund, $order, $admin);
|
|
|
+ $refund = HdRefundMallClass::approve($refund, $order, $admin);
|
|
|
$orderId = (int)$refund->orderId;
|
|
|
$transaction->commit();
|
|
|
DistributionCommissionClass::tryCalcDistributionAfterPay($orderId);
|
|
|
- util::complete('审核通过,退款已处理');
|
|
|
+
|
|
|
+ // 对齐即时售后:返回 needFundAction 等,线下/现金等可选手选落地
|
|
|
+ $refund = HdRefundClass::getById((int)$refund->id, true);
|
|
|
+ $payload = HdNextDayRefundClass::buildFundResultPayload($refund);
|
|
|
+ util::success($payload, '审核通过,退款已处理');
|
|
|
} catch (\Exception $e) {
|
|
|
$transaction->rollBack();
|
|
|
Yii::info('商城售后审核通过失败:' . $e->getMessage());
|