master
jiahuiwen 2021-10-28 11:35:33 +08:00
parent 159ce0d278
commit 95d5f6467b
1 changed files with 4 additions and 3 deletions

View File

@ -80,12 +80,13 @@ public class HaoGameRechargeController {
while (iterator.hasNext()) {
Map.Entry<String, String> next = iterator.next();
String key = next.getKey();
Object value = next.getValue();
String value = next.getValue();
if (value == null || "".equals(value)) {
continue;
}
if (key.equals("extra")) {
value = URLEncoder.encode((String) value,"UTF-8");
if ("extra".equals(key)) {
value = value.replace("\"", "\\\"");
value = URLEncoder.encode(value,"UTF-8");
}
sbKey.append(key).append("=").append(value).append("&");
}