123
This commit is contained in:
1 parent
1af9609d27
commit
5a341e6bb1
3 files changed
+28
-2
No files matched your search
@@ -14,4 +14,5 @@ public class DmOperateVo implements Serializable {
|
||||
private Integer type;
|
||||
private Integer x;
|
||||
private Integer y;
|
||||
private Long versionId;
|
||||
}
|
||||
@@ -66,7 +66,19 @@ public class DmPlayerentPlus implements Serializable
|
||||
/** 当前任务 */
|
||||
@Excel(name = "当前任务")
|
||||
private String winTwoCurTask;
|
||||
public void setId(Long id)
|
||||
|
||||
@Excel(name = "版本信息")
|
||||
private String dmVersion;
|
||||
|
||||
public String getDmVersion() {
|
||||
return dmVersion;
|
||||
}
|
||||
|
||||
public void setDmVersion(String dmVersion) {
|
||||
this.dmVersion = dmVersion;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
+14
-1
@@ -287,8 +287,21 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
||||
} catch (Exception 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