generated from root/miduo_server
test
parent
57cbc38a10
commit
3d8eafb57d
|
@ -4,6 +4,10 @@ import java.io.Serializable;
|
||||||
|
|
||||||
public class HaoGameParamBean implements Serializable {
|
public class HaoGameParamBean implements Serializable {
|
||||||
|
|
||||||
|
public HaoGameParamBean(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private String outtradeno;
|
private String outtradeno;
|
||||||
private String tradeno;
|
private String tradeno;
|
||||||
private String status;
|
private String status;
|
||||||
|
|
|
@ -68,13 +68,12 @@ public class JsonUtil {
|
||||||
|
|
||||||
|
|
||||||
public static HaoGameParamBean serializeToObject(String str) throws IOException, ClassNotFoundException {
|
public static HaoGameParamBean serializeToObject(String str) throws IOException, ClassNotFoundException {
|
||||||
// ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str.getBytes("UTF-8"));
|
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str.getBytes("UTF-8"));
|
||||||
// ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);
|
ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);
|
||||||
// HaoGameParamBean object = (HaoGameParamBean) objectInputStream.readObject();
|
HaoGameParamBean object = (HaoGameParamBean) objectInputStream.readObject();
|
||||||
// objectInputStream.close();
|
objectInputStream.close();
|
||||||
// byteArrayInputStream.close();
|
byteArrayInputStream.close();
|
||||||
HaoGameParamBean haoGameParamBean = gson.fromJson(str, HaoGameParamBean.class);
|
return object;
|
||||||
return haoGameParamBean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public SortedMap<String, String> getParameterMapYX(HttpServletRequest request) {
|
public SortedMap<String, String> getParameterMapYX(HttpServletRequest request) {
|
||||||
|
|
Loading…
Reference in New Issue