Merge branch 'dev'
This commit is contained in:
commit
a631c70af9
@ -4,6 +4,7 @@ namespace Extend\Ca;
|
|||||||
|
|
||||||
use App\Constants\HttpEnumCode;
|
use App\Constants\HttpEnumCode;
|
||||||
use App\Exception\BusinessException;
|
use App\Exception\BusinessException;
|
||||||
|
use App\Utils\Log;
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use GuzzleHttp\Exception\GuzzleException;
|
use GuzzleHttp\Exception\GuzzleException;
|
||||||
use Hyperf\Di\Annotation\Inject;
|
use Hyperf\Di\Annotation\Inject;
|
||||||
@ -53,6 +54,7 @@ abstract class Ca
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Log::getInstance()->info("获取云证书签名请求",$option);
|
||||||
try {
|
try {
|
||||||
$response = $this->httpRequest(
|
$response = $this->httpRequest(
|
||||||
$this->api_url . '/cloud-certificate-service' . '/api/cloudCert/open/cert/sign',
|
$this->api_url . '/cloud-certificate-service' . '/api/cloudCert/open/cert/sign',
|
||||||
@ -62,6 +64,8 @@ abstract class Ca
|
|||||||
// 返回值为空
|
// 返回值为空
|
||||||
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
|
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log::getInstance()->info("获取云证书签名返回值",$option);
|
||||||
return $response;
|
return $response;
|
||||||
} catch (GuzzleException $e) {
|
} catch (GuzzleException $e) {
|
||||||
throw new BusinessException($e->getMessage());
|
throw new BusinessException($e->getMessage());
|
||||||
@ -126,11 +130,12 @@ abstract class Ca
|
|||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Log::getInstance()->info("添加签章配置",$option);
|
||||||
$response = $this->httpRequest(
|
$response = $this->httpRequest(
|
||||||
$this->api_url . '/signature-server/api/open/signature/userSignConfig',
|
$this->api_url . '/signature-server/api/open/signature/userSignConfig',
|
||||||
$option
|
$option
|
||||||
);
|
);
|
||||||
dump($response);
|
Log::getInstance()->info("添加签章配置",$response);
|
||||||
return true;
|
return true;
|
||||||
} catch (GuzzleException $e) {
|
} catch (GuzzleException $e) {
|
||||||
throw new BusinessException($e->getMessage());
|
throw new BusinessException($e->getMessage());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user