追加url构造;去除diff

This commit is contained in:
IceCola 2024-05-17 00:34:22 +08:00
parent a81d78bab4
commit ca2c46701e
1 changed files with 11 additions and 7 deletions

View File

@ -66,14 +66,18 @@ export function sendUpdate() {
if (nonameInitialized && nonameInitialized.includes("com.noname.shijian") && window.noname_shijianInterfaces && typeof window.noname_shijianInterfaces.sendUpdate === 'function') { if (nonameInitialized && nonameInitialized.includes("com.noname.shijian") && window.noname_shijianInterfaces && typeof window.noname_shijianInterfaces.sendUpdate === 'function') {
// 给诗笺版apk的java层传递升级完成的信息 // 给诗笺版apk的java层传递升级完成的信息
// @ts-ignore // @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 // @ts-ignore
if (window.NonameAndroidBridge && typeof window.NonameAndroidBridge.sendUpdate === 'function') { if (window.NonameAndroidBridge && typeof window.NonameAndroidBridge.sendUpdate === 'function') {
// 给由理版apk的java层传递升级完成的信息 // 给由理版apk的java层传递升级完成的信息
// @ts-ignore // @ts-ignore
return window.NonameAndroidBridge.sendUpdate() + "?sendUpdate=true"; const url = new URL(window.NonameAndroidBridge.sendUpdate());
url.searchParams.set("sendUpdate", "true");
return url.toString();
} }
} }
// 电脑端 // 电脑端
@ -790,7 +794,7 @@ function initSheet(libConfig) {
bstyle = bstyle.slice(7); bstyle = bstyle.slice(7);
} }
Reflect.get(ui, "css").border_stylesheet.sheet.insertRule( Reflect.get(ui, "css").border_stylesheet.sheet.insertRule(
'#window .player>.framebg,#window #arena.long.mobile:not(.fewplayer) .player[data-position="0"]>.framebg{display:block;background-image:url("' + '#window .player>.framebg,#window #arena.long.mobile:not(.fewplayer) .player[data-position="0"]>.framebg{display:block;background-image:url("' +
lib.assetURL + lib.assetURL +
"theme/style/player/" + "theme/style/player/" +
bstyle + bstyle +
@ -799,10 +803,10 @@ function initSheet(libConfig) {
); );
Reflect.get(ui, "css").border_stylesheet.sheet.insertRule( Reflect.get(ui, "css").border_stylesheet.sheet.insertRule(
'#window #arena.long:not(.fewplayer) .player>.framebg, #arena.oldlayout .player>.framebg{background-image:url("' + '#window #arena.long:not(.fewplayer) .player>.framebg, #arena.oldlayout .player>.framebg{background-image:url("' +
lib.assetURL + lib.assetURL +
"theme/style/player/" + "theme/style/player/" +
bstyle + bstyle +
'3.png")}', '3.png")}',
0 0
); );
Reflect.get(ui, "css").border_stylesheet.sheet.insertRule( Reflect.get(ui, "css").border_stylesheet.sheet.insertRule(