feat: H5热更新 v6→v7 — 远端version.txt=v7 + index-v7.html

- ota/version.txt → 0.1.0-dav-android-7
- ota/h5/index-v7.html → 绿色标题+热更新成功提示
- embedded index.html → 下载目标改为v7
This commit is contained in:
LukeMackin
2026-07-21 15:00:59 +08:00
parent 0727aa33f1
commit 8f04acaf98
417 changed files with 40874 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ function checkUpdate(){
.then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()})
.then(t=>{t=t.trim();log('remote: '+t);
var local=document.getElementById('ver').innerText;
if(t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v6.html';
if(t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v7.html';
log('*** NEW VERSION: '+dlVer+' ***');document.getElementById('btnApply').disabled=false}
else log('up to date')})
.catch(e=>log('ERR: '+e.message))