mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复Cookie组合
This commit is contained in:
parent
ad30e6bbeb
commit
6d75cf54b8
11
shell/jd.sh
11
shell/jd.sh
|
@ -21,7 +21,7 @@ function Import_Conf {
|
||||||
then
|
then
|
||||||
. ${CookieConf}
|
. ${CookieConf}
|
||||||
. ${FileConf}
|
. ${FileConf}
|
||||||
if [ ! -s ${CookieConf} ]; then
|
if [[ ! -s ${CookieConf} ]]; then
|
||||||
echo -e "请先在Cookie管理中添加一条Cookie...\n"
|
echo -e "请先在Cookie管理中添加一条Cookie...\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -40,10 +40,11 @@ function Detect_Cron {
|
||||||
|
|
||||||
## 用户数量UserSum
|
## 用户数量UserSum
|
||||||
function Count_UserSum {
|
function Count_UserSum {
|
||||||
for ((i=1; i<=1000; i++)); do
|
UserSum=0
|
||||||
Tmp=Cookie$i
|
for line in `cat $CookieConf`
|
||||||
CookieTmp=${!Tmp}
|
do
|
||||||
[[ ${CookieTmp} ]] && UserSum=$i || break
|
((UserSum++))
|
||||||
|
eval Cookie${UserSum}="\"${line}\""
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user