[TOC] 详细代码:
#!/bin/bash
i=0;
step=1
while [ $i -lt 61 ]
do
curl 'http://wx2.pyxxkj.com/index/api/order'
curl 'http://wx2.pyxxkj.com/index/api/allotorder'
val=`expr $i % 3`
if [ $val == 0 ]
then
curl 'http://wx2.pyxxkj.com/index/api/getdate'
fi
if [ $i == 40 ]
then
curl 'http://wx2.pyxxkj.com/index/api/checkbal'
fi
sleep $step
if [ $i == 60 ]
then
i=`expr 0`
else
i=`expr $i + 1`
fi
done
exit 0