2024-04-30 14:14:30 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
|
|
|
|
|
|
use app\common\enum\user\UserTerminalEnum;
|
|
|
|
use app\common\service\pay\WeChatPayService;
|
2024-05-06 18:04:21 +08:00
|
|
|
use app\Request;
|
|
|
|
use Error;
|
|
|
|
use support\Log;
|
2024-04-30 14:14:30 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 支付
|
|
|
|
* Class PayController
|
|
|
|
* @package app\api\controller
|
|
|
|
*/
|
|
|
|
class PayController extends BaseApiController
|
|
|
|
{
|
|
|
|
|
2024-05-06 15:19:55 +08:00
|
|
|
public $notNeedLogin = ['notifyMnp','aa'];
|
2024-04-30 14:14:30 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @notes 小程序支付回调
|
|
|
|
* @return \Psr\Http\Message\ResponseInterface
|
|
|
|
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
|
|
|
|
* @throws \EasyWeChat\Kernel\Exceptions\RuntimeException
|
|
|
|
* @throws \ReflectionException
|
|
|
|
* @throws \Throwable
|
|
|
|
* @author 段誉
|
|
|
|
* @date 2023/2/28 14:21
|
|
|
|
*/
|
|
|
|
public function notifyMnp()
|
|
|
|
{
|
|
|
|
return (new WeChatPayService(UserTerminalEnum::WECHAT_MMP))->notify();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|