no message
This commit is contained in:
parent
cae092e80b
commit
a2abbe9f12
@ -110,8 +110,8 @@ final class Epay extends Base
|
|||||||
$data['sign'] = $epaySubmit->buildRequestMysign(EpayTool::argSort($data));
|
$data['sign'] = $epaySubmit->buildRequestMysign(EpayTool::argSort($data));
|
||||||
$data['sign_type'] = $this->epay['sign_type'];
|
$data['sign_type'] = $this->epay['sign_type'];
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
var_dump($this->epay['apiurl']);
|
// var_dump($this->epay['apiurl']);
|
||||||
exit;
|
// exit;
|
||||||
try {
|
try {
|
||||||
$res = $client->request('POST', $this->epay['apiurl'] . 'mapi.php', ['form_params' => $data]);
|
$res = $client->request('POST', $this->epay['apiurl'] . 'mapi.php', ['form_params' => $data]);
|
||||||
|
|
||||||
@ -134,8 +134,8 @@ final class Epay extends Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($resData);
|
// var_dump($resData);
|
||||||
exit;
|
// exit;
|
||||||
|
|
||||||
return $response->withHeader('HX-Redirect', $resData['payurl'])->withJson([
|
return $response->withHeader('HX-Redirect', $resData['payurl'])->withJson([
|
||||||
'ret' => 1,
|
'ret' => 1,
|
||||||
|
|||||||
@ -88,7 +88,7 @@ final class Payment
|
|||||||
|
|
||||||
public static function purchase($request, $response, $args)
|
public static function purchase($request, $response, $args)
|
||||||
{
|
{
|
||||||
exit(1111111);
|
// exit(1111111);
|
||||||
$payment = self::getPaymentByName($args['type']);
|
$payment = self::getPaymentByName($args['type']);
|
||||||
|
|
||||||
if ($payment !== null) {
|
if ($payment !== null) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user