|
@@ -58,7 +58,7 @@ public class TestController {
|
|
|
public ResultData createCameraAuthCode(@RequestParam(required = false) String snCode) throws Exception {
|
|
|
RsaUtils rsa = new RsaUtils();
|
|
|
|
|
|
- String ciphertext = rsa.encipher("4DKKPRO_"+snCode, CacheUtil.publicKey);
|
|
|
+ String ciphertext = rsa.encipher("4DKKPRO_"+snCode.toUpperCase(), CacheUtil.publicKey);
|
|
|
System.out.println(String.format("密文:"+ciphertext));
|
|
|
|
|
|
return ResultData.ok(ciphertext);
|