|
|
@@ -43,13 +43,15 @@ public class AddPuplicParameIntercept implements Interceptor {
|
|
|
|
|
|
/**
|
|
|
* 添加公共参数
|
|
|
+ * 增加同步锁,防止多个HTTP同时请求时,加密出现异常bug
|
|
|
+ *
|
|
|
.setQueryParameter("test3","test3")
|
|
|
.addQueryParameter("test","test")
|
|
|
.setEncodedQueryParameter("test2","test2")
|
|
|
* @param oldRequest
|
|
|
* @return
|
|
|
*/
|
|
|
- private Request addParam(Request oldRequest) {
|
|
|
+ synchronized private Request addParam(Request oldRequest) {
|
|
|
HttpUrl.Builder b = oldRequest.url()
|
|
|
.newBuilder();
|
|
|
String method = oldRequest.method();
|