追加url构造;去除diff
This commit is contained in:
parent
a81d78bab4
commit
ca2c46701e
|
@ -66,14 +66,18 @@ export function sendUpdate() {
|
|||
if (nonameInitialized && nonameInitialized.includes("com.noname.shijian") && window.noname_shijianInterfaces && typeof window.noname_shijianInterfaces.sendUpdate === 'function') {
|
||||
// 给诗笺版apk的java层传递升级完成的信息
|
||||
// @ts-ignore
|
||||
return window.noname_shijianInterfaces.sendUpdate() + "?sendUpdate=true";
|
||||
const url = new URL(window.noname_shijianInterfaces.sendUpdate());
|
||||
url.searchParams.set("sendUpdate", "true");
|
||||
return url.toString();
|
||||
}
|
||||
// 由理版判断
|
||||
// @ts-ignore
|
||||
if (window.NonameAndroidBridge && typeof window.NonameAndroidBridge.sendUpdate === 'function') {
|
||||
// 给由理版apk的java层传递升级完成的信息
|
||||
// @ts-ignore
|
||||
return window.NonameAndroidBridge.sendUpdate() + "?sendUpdate=true";
|
||||
const url = new URL(window.NonameAndroidBridge.sendUpdate());
|
||||
url.searchParams.set("sendUpdate", "true");
|
||||
return url.toString();
|
||||
}
|
||||
}
|
||||
// 电脑端
|
||||
|
|
Loading…
Reference in New Issue