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