no message
This commit is contained in:
parent
cc6a2ee77a
commit
6c52ecdbc2
@ -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]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user