修复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

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;
}

View File

@ -33,6 +33,12 @@ if [ ! -s ${JD_DIR}/config/auth.json ]; then
echo
fi
if [ -s /etc/nginx/conf.d/default.conf ]; then
echo -e "检测到默认nginx配置文件删除...\n"
rm -f /etc/nginx/conf.d/default.conf
echo
fi
cp -fv ${JD_DIR}/docker/front.conf /etc/nginx/conf.d/front.conf
echo -e "======================2. 启动nginx========================\n"

View File

@ -12,7 +12,7 @@ git reset --mixed
echo -e "更新shell完成...\n"
echo -e "重新build...\n"
yarn install
yarn install --registry=https://registry.npm.taobao.org
yarn build
yarn build-back
echo -e "重新build完成...\n"