高版本反而弹更新的bug;部分手机自动更新由于程序退出导致安装包损坏问题

This commit is contained in:
CaiYanPeng 2021-12-03 18:21:17 +08:00
parent aa0c8d4fb6
commit ef3e3a8321
2 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class AndroidUpdate : PFUIPanel
var activity = jc.GetStatic<AndroidJavaObject>("currentActivity"); var activity = jc.GetStatic<AndroidJavaObject>("currentActivity");
//Debug.Log("打开apk"+ "file://" + path); //Debug.Log("打开apk"+ "file://" + path);
activity.Call("OpenApk", path); activity.Call("OpenApk", path);
Application.Quit(); //Application.Quit();
#endif #endif
} }
} }

View File

@ -234,6 +234,10 @@ namespace Assets.Scripts
{ {
return true; return true;
} }
else if (ai > bi)
{
return false;
}
} }
return false; return false;
} }