Skip to content
Snippets Groups Projects
Unverified Commit 9029a1ea authored by Recolic Keghart's avatar Recolic Keghart
Browse files

update siginin.sh

parent 45acf0d8
No related branches found
No related tags found
No related merge requests found
......@@ -13,22 +13,23 @@ set _audio_player "mpg123"
set tmpfl (mktemp)
function reconfirm
curl "$_url" 2>/dev/null | grep "<p class='success-tip'>暂无签到开启</p>"
and mpg123 signin.mp3
end
while true
sleep 5
date
curl "$_url" 2>/dev/null > $tmpfl
curl -L "$_url" 2>/dev/null > $tmpfl
if grep '{"data":\[\],"msg":"unauthorized"}' $tmpfl
mpg123 badid.mp3
sleep 5
continue
end
if not grep "<p class='success-tip'>暂无签到开启</p>" $tmpfl
reconfirm
#mpg123 signin.mp3
if grep '签到中...' $tmpfl
echo 'got'
mpg123 signin.mp3
continue
end
if grep "<p class='success-tip'>暂无签到开启</p>" $tmpfl
continue
end
if grep '你已签过到了' $tmpfl
continue
end
sleep 5
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment