feat : refund

This commit is contained in:
2025-02-24 15:06:26 +08:00
parent 6754d2969e
commit 27a6ad3e2e
15 changed files with 591 additions and 281 deletions

View File

@@ -5,11 +5,14 @@ declare(strict_types=1);
namespace App\Controller\Common;
use App\Service\Common\OssCallbackService;
use App\Service\Common\Pay\Wx\WxJsRechargeOrderService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseInterface;
use RedisException;
use Yansongda\Artful\Exception\InvalidParamsException;
#[Controller]
class ThirdCallbackController
@@ -22,8 +25,34 @@ class ThirdCallbackController
* @throws RedisException
*/
#[RequestMapping(path: "/common/oss/ossCallBack", methods: "post")]
public function callback()
public function ossCallback()
{
return (new OssCallbackService)->process();
}
/**
* 微信js通道支付回调
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws InvalidParamsException
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "/common/wxPay/order/js/callBack", methods: "post")]
public function wxJsPayCallBack(): ResponseInterface
{
return (new WxJsRechargeOrderService)->callBackHandle();
}
/**
* 微信js通道退款回调
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws InvalidParamsException
*/
#[RequestMapping(path: "/common/wxPay/order/js/refund/callBack", methods: "post")]
public function wxJsRefundCallBack(): ResponseInterface
{
return (new WxJsRechargeOrderService)->refundCallBackHandle();
}
}