follow rules by ITC to obtain the ac_id
#12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #11
Relates-to: BITNP/bitsrun#49
已知的问题
用了
or
而非or_else
,有多余网络请求无论是否登录,都会为了
ac_id
发送两个网络请求。原因:
or_else
和async
八字不合(How to run async code within Option / Result function chain? - help - The Rust Programming Language Forum),这样写更易理解。况且 Python 那边也有多余网络请求。ARBITRARY_HTTP_SITE
可能要换成校外网站网信中心推荐 http://www.bit.edu.cn ,但我实测(
dbg!()
)发现每次都回落,并没起到效果。似乎换成校外网站(例如 http://b23.tv )才会跳转。