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