diff --git a/modify.sh b/modify.sh index 12ca238..2aff3a9 100644 --- a/modify.sh +++ b/modify.sh @@ -13,7 +13,8 @@ step=$(( base_num + random_num )) do_it() { echo `date +"%Y/%m/%d %H:%M:%S"` $acct step =\> $step - resp=`curl -s --location --request GET "https://steps.hubp.de/api?account=$acct&password=$passwd&steps=$step"` + resp=`curl -v -s --location --request GET "https://steps.hubp.de/api?account=$acct&password=$passwd&steps=$step"` + echo $resp if echo $resp | grep success ;then echo 步数修改成功,$resp @@ -24,7 +25,7 @@ do_it() { fi } -for i in `seq 0 4`;do +while true;do echo try $i times if do_it;then exit 0