master
jiahuiwen 2021-10-27 18:49:20 +08:00
parent 57cbc38a10
commit 3d8eafb57d
2 changed files with 10 additions and 7 deletions

View File

@ -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;

View File

@ -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) {