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]);