/// <summary> /// 检测是否需要进行资源更新 /// </summary> public void CompareVersion() { if (currentVo.isResVersionNeedUpdate(ApkInfoVo.remoteResId)) { StartCoroutine(StartDownDiffList()); } else { DoVersionComplete(true); } }
public void CompareVersion(string remoteVersion, int resId) { VersionVo currentVo = GetCurrentVo(); if (currentVo.isVersionNeedUpdate(remoteVersion)) { Debug.Log("需要进行大版本更新"); } else if (currentVo.isResVersionNeedUpdate(resId.ToString())) { Debug.Log("资源需要进行差异更新"); StartCoroutine(StartDownDiffList(remoteVersion, resId)); } else { Debug.Log("无更新内容"); if (versionCompleteCallBack != null) { versionCompleteCallBack(); } } }