📅  最后修改于: 2022-03-11 14:52:13.704000             🧑  作者: Mango
private Uri buildURI(String url, Map params) {
// build url with parameters.
Uri.Builder builder = Uri.parse(url).buildUpon();
for (Map.Entry entry : params.entrySet()) {
builder.appendQueryParameter(entry.getKey(), entry.getValue());
}
return builder.build();
}