erp/app/api/controller/PayController.php
2024-05-06 18:04:21 +08:00

41 lines
820 B
PHP

<?php
namespace app\api\controller;
use app\common\enum\user\UserTerminalEnum;
use app\common\service\pay\WeChatPayService;
use app\Request;
use Error;
use support\Log;
/**
* 支付
* Class PayController
* @package app\api\controller
*/
class PayController extends BaseApiController
{
public $notNeedLogin = ['notifyMnp','aa'];
/**
* @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();
}
}