Blame view

src/routes/service.ts 263 Bytes
a7a82dbf   张志伟   🚚 chore(*): 更新依赖
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();
    }
  }