高版本反而弹更新的bug;部分手机自动更新由于程序退出导致安装包损坏问题
This commit is contained in:
1 parent
aa0c8d4fb6
commit
ef3e3a8321
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -234,6 +234,10 @@ namespace Assets.Scripts
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (ai > bi)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user