mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-09 03:30:24 +08:00
优化代码
This commit is contained in:
@@ -222,7 +222,7 @@ func (this *SSLCertService) ListSSLCertsWithOCSPError(ctx context.Context, req *
|
||||
CommonNames: cert.DecodeCommonNames(),
|
||||
IsACME: cert.IsACME == 1,
|
||||
AcmeTaskId: int64(cert.AcmeTaskId),
|
||||
Ocsp: []byte(cert.Ocsp),
|
||||
Ocsp: cert.Ocsp,
|
||||
OcspIsUpdated: cert.OcspIsUpdated == 1,
|
||||
OcspError: cert.OcspError,
|
||||
Description: cert.Description,
|
||||
@@ -300,7 +300,7 @@ func (this *SSLCertService) ListUpdatedSSLCertOCSP(ctx context.Context, req *pb.
|
||||
for _, cert := range certs {
|
||||
result = append(result, &pb.ListUpdatedSSLCertOCSPResponse_SSLCertOCSP{
|
||||
SslCertId: int64(cert.Id),
|
||||
Data: []byte(cert.Ocsp),
|
||||
Data: cert.Ocsp,
|
||||
ExpiresAt: int64(cert.OcspExpiresAt),
|
||||
Version: int64(cert.OcspUpdatedVersion),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user