String (String urlMap<StringString> queryParas) { (queryParas == || queryParas.isEmpty()) { url} StringBuilder sb = StringBuilder(url)isFirst(url.indexOf() == -) { isFirst = sb.append()} { isFirst = } (Entry<StringString> entry : queryParas.entrySet()) { (isFirst) { isFirst = } { sb.append()} String key = entry.getKey()String value = entry.getValue()(StrKit.(value)) { {value = URLEncoder.(value)} (UnsupportedEncodingException e) {RuntimeException(e)} } sb.append(key).append().append(value)} sb.toString()}
目前发现
value = URLEncoder.encode(value, CHARSET)
这个encode有些第三方接口是无法正常接收的,容易导致签名错误
项目:JFinal