fix: review — 移除未用import + v6 fallback兼容旧格式version.txt

This commit is contained in:
LukeMackin
2026-07-21 19:59:04 +08:00
parent af799da3ea
commit 19860bdec7
3 changed files with 1 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ function checkUpdate(){
.then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()}) .then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()})
.then(function(t){t=t.trim();log('remote: '+t); .then(function(t){t=t.trim();log('remote: '+t);
var parts=t.indexOf('|')>0?t.split('|'):[t];var remoteVer=parts[0];dlUrl=parts[1]||''; var parts=t.indexOf('|')>0?t.split('|'):[t];var remoteVer=parts[0];dlUrl=parts[1]||'';
if(!dlUrl)dlUrl=BASE+'/h5/index-v'+remoteVer.replace('0.1.0-dav-android-','')+'.html';
var local='0.1.0-dav-android-6'; var local='0.1.0-dav-android-6';
if(remoteVer!==local){dlVer=remoteVer; if(remoteVer!==local){dlVer=remoteVer;
log('*** NEW VERSION ***');document.getElementById('btnApply').disabled=false} log('*** NEW VERSION ***');document.getElementById('btnApply').disabled=false}

View File

@@ -3,7 +3,6 @@ package dev.yuzu.gca
import android.os.Bundle import android.os.Bundle
import android.util.Log import android.util.Log
import android.webkit.WebView import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import java.io.File import java.io.File