|
@ -177,7 +177,6 @@ public class UpdateThread implements Runnable {
|
|
|
os.close();
|
|
|
baos.close();
|
|
|
if (!Boolean.valueOf(s.trim())) {
|
|
|
isStart = true;
|
|
|
break;
|
|
|
}
|
|
|
LogUtil.info("服务正在关闭");
|
|
@ -230,6 +229,7 @@ public class UpdateThread implements Runnable {
|
|
|
if (Boolean.valueOf(s.trim())) {
|
|
|
i++;
|
|
|
if (i > 3) {
|
|
|
isStart = true;
|
|
|
LogUtil.info("服务启动成功");
|
|
|
break;
|
|
|
}
|
|
@ -309,7 +309,7 @@ public class UpdateThread implements Runnable {
|
|
|
params.put("orgCode", orgCode);
|
|
|
params.put("versionCode", ThreadConfig.SOFT_VERSIONCODE);
|
|
|
params.put("access_token", token);
|
|
|
String path = ThreadConfig.SERVICE_URL + ThreadConfig.UPDATE_THREAD_GETUPDATEFLAG;
|
|
|
String path = ThreadConfig.SERVICE_URL + ThreadConfig.UPDATE_THREAD_GETUPDATEFLAG;//192.168.1.1:7070/getisupodate
|
|
|
resultString = HttpsClientUtil.get(path, params, ThreadConfig.SERVICE_USERNAME, ThreadConfig.SERVICE_PASSWORD);
|
|
|
//不需要更新返回空 需要更新返回版本号版本名称
|
|
|
if (!StringUtils.isEmpty(resultString)) {
|