This commit is contained in:
ziming 2025-03-25 13:58:07 +08:00
parent f7f4287034
commit 35d3ef1501
1 changed files with 2 additions and 2 deletions

View File

@ -132,12 +132,12 @@ func (s *CmbMixRepoImpl) Verify(_ context.Context, req *v1.CmbRequest) (string,
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 {
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) {