post()->goCheck(); // //订单信息 // $order = PaymentLogic::getPayOrderInfo($params); // if (false === $order) { // return $this->fail(PaymentLogic::getError(), $params); // } // //支付流程 // $redirectUrl = $params['redirect'] ?? '/pages/payment/payment'; // $result = PaymentLogic::pay($params['pay_way'], $params['from'], $order, $this->userInfo['terminal'], $redirectUrl); // if (false === $result) { // return $this->fail(PaymentLogic::getError(), $params); // } // return $this->success('', $result); // } /** * @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(); } }