diff --git a/src/api/user.ts b/src/api/user.ts index b0759ab..1f27774 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -144,8 +144,3 @@ export interface IUpdateUserInfoParams { export function updateUserInfo(data: IUpdateUserInfoParams) { return http.Post('/api/user/setInfo', data) } - -/** - * 上传头像 - */ - diff --git a/src/hooks/useLocation.ts b/src/hooks/useLocation.ts index ac38afd..fdcef75 100644 --- a/src/hooks/useLocation.ts +++ b/src/hooks/useLocation.ts @@ -1,7 +1,7 @@ import { getLocationToCity } from '@/api/tea-room' -const LOCATION_EXPIRE_MS = 2 * 60 * 1000 // 定位缓存30天 -const LOCATION_DENY_INTERVAL = 1 * 60 * 1000 // 未授权定位,弹窗间隔1小时 +const LOCATION_EXPIRE_MS = 30 * 24 * 60 * 60 * 1000 // 定位缓存30天 +const LOCATION_DENY_INTERVAL = 60 * 60 * 1000 // 未授权定位,弹窗间隔1小时 export const LOCATION_EXPIRE_KEY = 'location_expire_time' // 定位缓存KEY export const LOCATION_DEFAULT_CITY = '上海市' // 默认城市