123
This commit is contained in:
1 parent
1af9609d27
commit
5a341e6bb1
3 files changed
+27
-1
No files matched your search
@@ -14,4 +14,5 @@ public class DmOperateVo implements Serializable {
|
|||||||
private Integer type;
|
private Integer type;
|
||||||
private Integer x;
|
private Integer x;
|
||||||
private Integer y;
|
private Integer y;
|
||||||
|
private Long versionId;
|
||||||
}
|
}
|
||||||
@@ -66,6 +66,18 @@ public class DmPlayerentPlus implements Serializable
|
|||||||
/** 当前任务 */
|
/** 当前任务 */
|
||||||
@Excel(name = "当前任务")
|
@Excel(name = "当前任务")
|
||||||
private String winTwoCurTask;
|
private String winTwoCurTask;
|
||||||
|
|
||||||
|
@Excel(name = "版本信息")
|
||||||
|
private String dmVersion;
|
||||||
|
|
||||||
|
public String getDmVersion() {
|
||||||
|
return dmVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDmVersion(String dmVersion) {
|
||||||
|
this.dmVersion = dmVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public void setId(Long id)
|
public void setId(Long id)
|
||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|||||||
+14
-1
@@ -287,8 +287,21 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
} if (vo.getAction() == 9) { //更新版本
|
||||||
|
try {
|
||||||
|
params.put("playerId", vo.getPlayerId());
|
||||||
|
String result = httpHelper.getlHttpResult("http://" + this.serverIp + ":" + serverPort + "?cmd=9¶ms=" + URLEncoder.encode(JSONObject.toJSONString(params), "utf-8")
|
||||||
|
, "get", new HashMap<>(), new HashMap<>());
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||||
|
if (jsonObject.getString("code").equals("1")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
System.out.println(result);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user