diff --git a/src/services/xcxApi.ts b/src/services/xcxApi.ts index f452371..c3e29a5 100644 --- a/src/services/xcxApi.ts +++ b/src/services/xcxApi.ts @@ -34,11 +34,11 @@ export class XCXAPI { } async getAdvProfile(uid: string) { - const cacheProfile = await redis.get(`my-kaiqiuwang-profile:${uid}`); + const cacheProfile = await redis.get(`my-kaiqiuwang:profile:${uid}`); if (!cacheProfile) { const url = `/api/User/adv_profile?uid=${uid}`; const profile = await this.#fetch(url); - await redis.setex(`my-kaiqiuwang-profile:${uid}`, 60 * 10, JSON.stringify(profile)); + await redis.setex(`my-kaiqiuwang:profile:${uid}`, 60 * 10, JSON.stringify(profile)); return profile; } return JSON.parse(cacheProfile);