From 6c52ecdbc233ef49eeed70ebc35605c7fed79706 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 24 Jun 2025 16:30:55 +0800 Subject: [PATCH] no message --- src/Services/Gateway/Epay.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Services/Gateway/Epay.php b/src/Services/Gateway/Epay.php index 0c8a4513..39b93d20 100755 --- a/src/Services/Gateway/Epay.php +++ b/src/Services/Gateway/Epay.php @@ -62,6 +62,10 @@ final class Epay extends Base public function purchase(ServerRequest $request, Response $response, array $args): ResponseInterface { + return $response->withJson([ + 'ret' => 0, + 'msg' => '请求支付失败,请联系管理员', + ]); $price = $this->antiXss->xss_clean($request->getParam('price')); $invoice_id = $this->antiXss->xss_clean($request->getParam('invoice_id')); // EPay 特定参数 @@ -110,8 +114,8 @@ final class Epay extends Base $data['sign'] = $epaySubmit->buildRequestMysign(EpayTool::argSort($data)); $data['sign_type'] = $this->epay['sign_type']; $client = new Client(); - var_dump($this->epay['apiurl']); - exit; +// var_dump($this->epay['apiurl']); +// exit; try { $res = $client->request('POST', $this->epay['apiurl'] . 'mapi.php', ['form_params' => $data]);