Skip to content

Commit 8b83d94

Browse files
committed
wip: 新增 aicnn token 获取规则
1 parent f9b3b00 commit 8b83d94

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/lzwme.js

+10
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,14 @@ module.exports = [
141141
handler: ({ cacheData: D }) => ({ envConfig: { value: D.map(d => `${d.headers['authorization']}##${d.uid}`).join('\n') } }),
142142
// updateEnvValue: /&([\d\*]+)/,
143143
},
144+
{
145+
on: 'res-body',
146+
ruleId: 'aicnn_token',
147+
desc: 'AICNN签到 token 提取',
148+
source: 'https://github.com/lzwme/ql-scripts/blob/main/ql_aicnn.ts',
149+
url: 'https://api.aicnn.cn/app-api/system/auth/refresh-token*',
150+
method: 'post',
151+
getCacheUid: ({ resBody: R, headers }) => (R?.data?.userId ? { uid: R.data.userId, data: R.data.refreshToken } : nulll),
152+
handler: ({ cacheData: D }) => ({ envConfig: { value: D.map(d => `${d.data}##${d.uid}`).join('\n') } }),
153+
},
144154
];

0 commit comments

Comments
 (0)