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