feat: wire lobby task and VIP prefab flows and sync UI assets
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { IdentitySource } from '../identity.ts';
|
||||
import { logNativeCall } from '../../core/native-call-log.ts';
|
||||
|
||||
export type NativeHostKind = 'native-settings' | 'uAgent_3';
|
||||
|
||||
@@ -19,6 +20,7 @@ function hasValue(value: unknown): boolean {
|
||||
/** 忠实 Func.getothername:非 uAgent_3 的调用异常在源边界变成空串。 */
|
||||
export function getothername(win: NativeHost, hostKind: NativeHostKind, name: string): unknown {
|
||||
if (hostKind === 'uAgent_3') return win[`app_${name}`];
|
||||
logNativeCall('settings','getothername',[name],!!win.settings?.getothername);
|
||||
try {
|
||||
return win.settings!.getothername!(name);
|
||||
} catch {
|
||||
@@ -28,6 +30,7 @@ export function getothername(win: NativeHost, hostKind: NativeHostKind, name: st
|
||||
|
||||
/** 原生 getchannelName 的既有缺省语义只存在于此适配器。 */
|
||||
export function getchannelName(win: NativeHost, hostKind: NativeHostKind): unknown {
|
||||
logNativeCall('settings','getchannelName',[],!!win.settings?.getchannelName);
|
||||
try {
|
||||
return win.settings!.getchannelName!() || '';
|
||||
} catch {
|
||||
@@ -37,6 +40,7 @@ export function getchannelName(win: NativeHost, hostKind: NativeHostKind): unkno
|
||||
|
||||
/** 原生 getmarketname 的既有缺省语义只存在于此适配器。 */
|
||||
export function getmarketname(win: NativeHost, hostKind: NativeHostKind): unknown {
|
||||
logNativeCall('settings','getmarketname',[],!!win.settings?.getmarketname);
|
||||
try {
|
||||
return win.settings!.getmarketname!();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user