Skip to content
Snippets Groups Projects
Verified Commit 5e5833de authored by Recolic Keghart's avatar Recolic Keghart
Browse files

pull 20190524 update

parent d1909c80
No related branches found
No related tags found
No related merge requests found
Pipeline #725 passed with stage
in 9 minutes and 27 seconds
......@@ -12,8 +12,10 @@ function try_signin_once --description "signin_once <openid> <N> <E> <tmpfl> <co
set result_badid 2
set result_nothing 3
set _url "https://www.teachermate.com.cn/wechat/wechat/guide/signin?openid=$_openid"
set _url "https://v18.teachermate.cn/wechat/wechat/guide/signin?openid=$_openid"
set _resign_url "https://v18.teachermate.cn/api/v1/wechat/re-auth?m=s_signin&code=$_openid&state=$_openid"
curl -L "$_url" -v 2>$cookiefl > $tmpfl
curl -L "$_resign_url" -v 2>$cookiefl > $tmpfl
if grep -F '{"data":\[\],"msg":"unauthorized"}' $tmpfl > /dev/null
return $result_badid
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