|
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
import java.security.MessageDigest;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
@@ -83,6 +84,7 @@ public class ACPController {
|
|
|
|
|
|
// 2. 加密
|
|
|
String encryptedParams = this.encrypt(FastJsonUtil.toJSONString(params), encryptKey);
|
|
|
+ encryptedParams = URLEncoder.encode(encryptedParams, StandardCharsets.UTF_8);
|
|
|
|
|
|
return Result.OK(List.of(signedParams, encryptedParams));
|
|
|
}
|