service.ts 263 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 import { host, http } from '@feewee/h5app-common'; export async function getServerTime(): Promise<number> { try { return await http.get<number>(`${host.admin}/common/sys/time`, undefined, { ignoreAuth: true }); } catch (e) { return Date.now(); } }