修改主数据

This commit is contained in:
lvleigang 2024-07-05 11:33:52 +08:00
parent ccfb478ce9
commit 45d79526ae
2 changed files with 2 additions and 0 deletions

View File

@ -309,5 +309,6 @@ public class Cbs8ExtServiceImpl implements ICbs8ExtService {
header.put("hzyaExtData", requestData); header.put("hzyaExtData", requestData);
entity.setByteBodys(encryptedData); entity.setByteBodys(encryptedData);
entity.setHeaders(header); entity.setHeaders(header);
logger.info("CBS请求encrypAndsign参数:{}", requestData);
} }
} }

View File

@ -169,6 +169,7 @@ public class CBSUtil {
* @return * @return
*/ */
public static byte[] encrypt(String requestData){ public static byte[] encrypt(String requestData){
logger.info("bodyEncryptionKey: "+bodyEncryptionKey+"requestData: "+ requestData);
byte[] encrypt = SM2Util.encrypt(bodyEncryptionKey, requestData.getBytes(StandardCharsets.UTF_8)); byte[] encrypt = SM2Util.encrypt(bodyEncryptionKey, requestData.getBytes(StandardCharsets.UTF_8));
return encrypt; return encrypt;
} }