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 HaoGameParamBean(){
}
private String outtradeno;
private String tradeno;
private String status;

View File

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