修复ck填写错误,ck列表报错

This commit is contained in:
whyour
2021-03-24 19:43:11 +08:00
parent 64a8acde92
commit 3c579c10a6
3 changed files with 22 additions and 7 deletions
+15 -6
View File
@@ -266,12 +266,21 @@ export default class CookieService {
const result = [];
for (const x of data) {
const { nickname, status } = await this.getJdInfo(x);
result.push({
pin: x.match(/pt_pin=(.+?);/)[1],
cookie: x,
status,
nickname: nickname,
});
if (/pt_pin=(.+?);/.test(x)) {
result.push({
pin: x.match(/pt_pin=(.+?);/)[1],
cookie: x,
status,
nickname: nickname,
});
} else {
result.push({
pin: 'pin未匹配到',
cookie: x,
status,
nickname: nickname,
});
}
}
return result;
}