bizBytes
This commit is contained in:
parent
f7f4287034
commit
35d3ef1501
|
|
@ -132,12 +132,12 @@ func (s *CmbMixRepoImpl) Verify(_ context.Context, req *v1.CmbRequest) (string,
|
||||||
return "", err2.ErrorCmbVerifyFail("签名验证失败")
|
return "", err2.ErrorCmbVerifyFail("签名验证失败")
|
||||||
}
|
}
|
||||||
|
|
||||||
bizStr, err := cmb.DecryptBody(&cmb.Decrypts{EncryptBody: req.EncryptBody, PrivateKey: s.bc.Cmb.Sm2Prk})
|
bizBytes, err := cmb.DecryptBody(&cmb.Decrypts{EncryptBody: req.EncryptBody, PrivateKey: s.bc.Cmb.Sm2Prk})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err2.ErrorCmbBizContentDecryptFail(err.Error())
|
return "", err2.ErrorCmbBizContentDecryptFail(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
return string(bizStr), nil
|
return string(bizBytes), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *CmbMixRepoImpl) GetRequest(_ context.Context, reqBo *bo.CmbRequestBo) (*v1.CmbRequest, error) {
|
func (s *CmbMixRepoImpl) GetRequest(_ context.Context, reqBo *bo.CmbRequestBo) (*v1.CmbRequest, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue