Skip to content

Commit

Permalink
修复:微信小程序端报错“sm4Key must not be null”
Browse files Browse the repository at this point in the history
  • Loading branch information
pppscn committed Oct 27, 2022
1 parent f99dc6b commit 91d8910
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AppMessageConverter : MessageConverter {
throw HttpException(500, "服务端未配置SM4密钥")
}

val sm4Key = ConvertTools.hexStringToByteArray(HttpServerUtils.clientSignKey.toString())
val sm4Key = ConvertTools.hexStringToByteArray(HttpServerUtils.serverSm4Key.toString())
val encryptCBC = ConvertTools.hexStringToByteArray(json)
val decryptCBC = SM4Crypt.decrypt(encryptCBC, sm4Key)
//json = String(Base64.decode(decryptCBC.toString()))
Expand Down

0 comments on commit 91d8910

Please sign in to comment.