版本更新问题?

小程序 文章 2021-12-14 18:00 285 0 全屏看文

AI助手支持GPT4.0

版本更新问题?Version update problem?

版本更新问题?

扫太阳码进入小程序指定页面后,先是“页面不存在”。然后多次扫码后进入到了上一个版本的首页。小程序onlaunch里加了updataManager也没用


只有删掉小程序重新扫码,才正常。

After scanning the sun code to enter the specified page of the applet, first "the page does not exist". After scanning the code for many times, you enter the home page of the previous version. It's useless to add updatamanager to the applet onlaunch. It's normal only to delete the applet and scan the code again.

回答:

社区技术运营专员-Jahozheng:

代码块放在 onLaunch方法这样冷启动才执行这个,旧版冷启动才会弹出来更新提醒

在最新版本才带了这个检查的话,旧版本没有这个代码就不会触发提示,要下次发布才会触发这个提示

李亚超:

可以自己写版本号判断有没有新版本,如果有新版本强制更新

中式小面包:

缓存

-EOF-

AI助手支持GPT4.0