|
@@ -67,7 +67,8 @@ public class AddPuplicParameIntercept implements Interceptor {
|
|
|
}
|
|
}
|
|
|
String oldParamsJson = buffer.readUtf8();
|
|
String oldParamsJson = buffer.readUtf8();
|
|
|
String newJsonParams = BaseMessageConverter.encrypt(oldParamsJson);
|
|
String newJsonParams = BaseMessageConverter.encrypt(oldParamsJson);
|
|
|
- body = RequestBody.create(requestBody.contentType(), newJsonParams);
|
|
|
|
|
|
|
+ if(!TextUtils.isEmpty(newJsonParams))
|
|
|
|
|
+ body = RequestBody.create(requestBody.contentType(), newJsonParams);
|
|
|
// oldRequest = oldRequest.newBuilder().post(body).build();
|
|
// oldRequest = oldRequest.newBuilder().post(body).build();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|