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