123
This commit is contained in:
1 parent
1365ef660b
commit
e22f6b510b
1 file changed
+6
-1
+6
-1
@@ -184,7 +184,12 @@ public class DmPlayerVersionServiceImpl extends ServiceImpl<DmPlayerVersionMappe
|
||||
try {
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("playerId", playerId);
|
||||
params.put("versionInfo", Base64.getEncoder().encodeToString(JSONObject.toJSONString(dmPlayerVersion).getBytes()));
|
||||
JSONObject version = new JSONObject();
|
||||
version.put("version",dmPlayerVersion.getVersionNum());
|
||||
version.put("url",dmPlayerVersion.getProxyUrl());
|
||||
version.put("configVersion",dmPlayerVersion.getVersionNum());
|
||||
version.put("configUrl",dmPlayerVersion.getConfigUrl());
|
||||
params.put("versionInfo", Base64.getEncoder().encodeToString(JSONObject.toJSONString(version).getBytes()));
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user