支付退款回调

main
fengxinyhyl 10 months ago
parent cb95d8ed08
commit 5aadf7b0c9
  1. 4
      app/common/repositories/store/order/StoreOrderCreateRepository.php
  2. 2
      app/event.php
  3. 24
      crmeb/listens/pay/CustomizePaySuccess.php
  4. 24
      crmeb/listens/pay/CustomizeRefundAll.php

@ -581,7 +581,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
}
unset($merchantCart);
/*//计算平台券优惠金额
//计算平台券优惠金额
// if ($total_true_price > 0) {
$StoreCouponUser = app()->make(StoreCouponUserRepository::class);
$platformCoupon = $StoreCouponUser->validUserPlatformCoupon($uid);
@ -728,7 +728,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
}
$usePlatformCouponId = $platformCouponRate['id'];
unset($merchantCart);
}*/
}
//积分配置
$sysIntegralConfig = systemConfig(['integral_money', 'integral_status', 'integral_order_rate']);

@ -61,6 +61,8 @@ return [
'pay_success_order' => [\crmeb\listens\pay\OrderPaySuccessListen::class],
'pay_success_presell' => [\crmeb\listens\pay\PresellPaySuccessListen::class],
'pay_success_meal' => [\crmeb\listens\pay\MealSuccessListen::class],
'order.paySuccess' => [\crmeb\listens\pay\CustomizePaySuccess::class],
'order.refundAll' => [\crmeb\listens\pay\CustomizeRefundAll::class],
],
'subscribe' => [],

@ -0,0 +1,24 @@
<?php
/**
* CustomizePaySuccess.php
* 文件描述
* Created on 2024/3/13 23:02
* Created by zhangkaixiang
*/
namespace crmeb\listens\pay;
use app\common\repositories\store\order\StoreGroupOrderRepository;
use app\common\repositories\store\order\StoreOrderRepository;
use crmeb\interfaces\ListenerInterface;
use think\facade\Log;
class CustomizePaySuccess implements ListenerInterface
{
public function handle($data): void
{
Log::info('支付成功' . json_encode($data));
}
}

@ -0,0 +1,24 @@
<?php
/**
* CustomizePaySuccess.php
* 文件描述
* Created on 2024/3/13 23:02
* Created by zhangkaixiang
*/
namespace crmeb\listens\pay;
use app\common\repositories\store\order\StoreGroupOrderRepository;
use app\common\repositories\store\order\StoreOrderRepository;
use crmeb\interfaces\ListenerInterface;
use think\facade\Log;
class CustomizeRefundAll implements ListenerInterface
{
public function handle($data): void
{
Log::info('退款' . json_encode($data));
}
}
Loading…
Cancel
Save