Commit 0dd775d4 by amateur

1

1 parent 8077208f
...@@ -48,13 +48,13 @@ public class UpdateUtils { ...@@ -48,13 +48,13 @@ public class UpdateUtils {
public static void checkH5Version(String h5Version) { public static void checkH5Version(String h5Version) {
if (BuildConfig.ONLINE) { // 线上版本不需要进行热更新 if (BuildConfig.ONLINE || TextUtils.isEmpty(h5Version)) { // 线上版本不需要进行热更新
return; return;
} }
ServerApi.postH5Version(h5Version, new RequestBack<UpdateVersion>() { ServerApi.postH5Version(h5Version, new RequestBack<UpdateVersion>() {
@Override @Override
protected void onResponse(StateEnum state, UpdateVersion data, String message) { protected void onResponse(StateEnum state, UpdateVersion data, String message) {
if (state != StateEnum.OK || null == data) { if (state != StateEnum.OK || null == data || h5Version.equals(data.getvNumber())) {
return; return;
} }
downH5Version(data); downH5Version(data);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!