diff --git a/lib/routes/xueqiu/cookies.ts b/lib/routes/xueqiu/cookies.ts index a79a1ec9fe4831..c7b09102769313 100644 --- a/lib/routes/xueqiu/cookies.ts +++ b/lib/routes/xueqiu/cookies.ts @@ -14,14 +14,16 @@ export const parseToken = () => if (matches) { acw_sc__v2 = getAcwScV2ByArg1(matches[1]); } - + const acw_sc__v2_cookie = `acw_sc__v2=${acw_sc__v2}`; const res = await ofetch.raw('https://xueqiu.com', { headers: { - Cookie: `acw_sc__v2=${acw_sc__v2}`, + Cookie: acw_sc__v2_cookie, }, }); const cookieArray = res.headers.getSetCookie(); - return cookieArray.find((c) => c.startsWith('xq_a_token=')); + const xq_a_token_cookie = cookieArray.find((c) => c.startsWith('xq_a_token=')); + + return `${acw_sc__v2_cookie}; ${xq_a_token_cookie}`; }, config.cache.routeExpire, false