generated from root/miduo_server
ohayoo,格式
parent
f595c74ae4
commit
b6c554d36a
|
@ -22,7 +22,7 @@ public class OhayooGetExternalController {
|
|||
@PostMapping(value = "/ohayooGetExternal")
|
||||
public String ohayooGetExternal(HttpServletRequest request) throws Exception {
|
||||
Gson gson = new Gson();
|
||||
TreeMap<String, String> map = new TreeMap<>();
|
||||
TreeMap<String, Object> map = new TreeMap<>();
|
||||
InputStreamReader insr = new InputStreamReader(request.getInputStream(),"utf-8");
|
||||
String result = "";
|
||||
int respInt = insr.read();
|
||||
|
@ -36,7 +36,7 @@ public class OhayooGetExternalController {
|
|||
return null;
|
||||
}
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||
builder.append(entry.getKey()).append("=").append(entry.getValue()).append("&");
|
||||
}
|
||||
String externalOrder = builder.substring(0, builder.length() - 1);
|
||||
|
@ -46,7 +46,6 @@ public class OhayooGetExternalController {
|
|||
|
||||
map.put("sign",sign);
|
||||
|
||||
|
||||
LOGGER.info("ohayoo返回前端参数:{}",gson.toJson(map));
|
||||
return gson.toJson(map);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue