perf:run util success

This commit is contained in:
2026-07-01 23:13:50 +08:00
parent 0b8c28ceda
commit 5cafb9e3cf
+3 -2
View File
@@ -13,7 +13,8 @@ step=$(( base_num + random_num ))
do_it() { do_it() {
echo `date +"%Y/%m/%d %H:%M:%S"` $acct step =\> $step 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 if echo $resp | grep success ;then
echo 步数修改成功,$resp echo 步数修改成功,$resp
@@ -24,7 +25,7 @@ do_it() {
fi fi
} }
for i in `seq 0 4`;do while true;do
echo try $i times echo try $i times
if do_it;then if do_it;then
exit 0 exit 0