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

urgent bug fix

parent d4fab878
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,8 @@
_openid=$(echo "$_openid" | sed 's/^.*openid=//g')
echo "Set openid to $_openid"
_url="https://www.teachermate.com.cn/wechat/wechat/guide/answer?openid=$_openid"
_audio_player="mpg123"
#_audio_player="cvlc --play-and-exit"
#_audio_player="mpg123"
_audio_player="cvlc --play-and-exit"
function _segfault_detected () {
echo "WARNING: segfault captured!"
......@@ -29,12 +27,12 @@ fi
cd impl
if [[ $1 == sign ]]; then
_url="$_url" _audio_player="$_audio_player" ./daemon-signin.fish
_openid="$_openid" _audio_player="$_audio_player" ./daemon-signin.fish
[[ $? == 127 ]] && exit 127
_segfault_detected
fi
if [[ $1 == ans ]]; then
_url="$_url" _audio_player="$_audio_player" ./daemon-answer.fish
_openid="$_openid" _audio_player="$_audio_player" ./daemon-answer.fish
[[ $? == 127 ]] && exit 127
_segfault_detected
fi
......
#!/usr/bin/fish
#Usage: fill _openid with openid from url of the page "学生->答题".
_url="https://www.teachermate.com.cn/wechat/wechat/guide/answer?openid=$_openid"
function _check_and_warn
if _all_answered
echo "LOG> exit because all question answered."
......
#!/usr/bin/fish
_url="https://www.teachermate.com.cn/wechat/wechat/guide/signin?openid=$_openid"
set tmpfl (mktemp)
rm $tmpfl
......
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