Merge branch 'release/0.0.7'

develop 0.0.7
X14XA\shengli 2 weeks ago
commit 18a2c90ac7
  1. 2
      composer.json
  2. 4
      src/library/impl/SignerHttpClient.php

@ -1,6 +1,6 @@
{ {
"name": "tansilu/hfpay-lib", "name": "tansilu/hfpay-lib",
"version": "0.0.6", "version": "0.0.7",
"type": "library", "type": "library",
"require": { "require": {
"php": ">=7.4", "php": ">=7.4",

@ -99,7 +99,7 @@ class SignerHttpClient implements ISigner
$options['form_params'] = $requestData; $options['form_params'] = $requestData;
try { try {
$result = $this->client->post('/hfpcfca/cfca/makeSign', $options); $result = $this->client->post('/cfca/makeSign', $options);
$response = Response::make($result); $response = Response::make($result);
if(!$response->isSuccess()) { if(!$response->isSuccess()) {
throw new SignException('签名请求失败,请检查签名服务器 ' . $response->getCode()); throw new SignException('签名请求失败,请检查签名服务器 ' . $response->getCode());
@ -144,7 +144,7 @@ class SignerHttpClient implements ISigner
$options['form_params'] = $requestData; $options['form_params'] = $requestData;
try { try {
$resp = $this->client->post('/hfpcfca/cfca/verifySign', $options); $resp = $this->client->post('/cfca/verifySign', $options);
} catch (GuzzleException $e) { } catch (GuzzleException $e) {
throw new ApiException('签名服务器请求失败 ' . $e->getMessage()); throw new ApiException('签名服务器请求失败 ' . $e->getMessage());
} }

Loading…
Cancel
Save