Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 拉取新学期课程表时出现乱码 #494

Open
dingdang-231 opened this issue Feb 17, 2025 · 3 comments
Open

[BUG] 拉取新学期课程表时出现乱码 #494

dingdang-231 opened this issue Feb 17, 2025 · 3 comments
Labels
bug Something isn't working high priority It should be worked on NOW

Comments

@dingdang-231
Copy link

复现步骤
复现该 Bug 的步骤:

  1. 设置课表起始日期为2025/2/17(25Spring学期的开始日)
  2. 弹出验证码为乱码图片
    (在茶楼中也有人反映相似问题,搜索“验证码”即可看到相关帖子)
    Image

系统信息

  • 设备型号:小米15
  • 系统版本:Xiaomi HyperOS2.0.101.0
  • 旦挞校园助手版本:1.4.7build344

Many Thanks!

@dingdang-231 dingdang-231 added the bug Something isn't working label Feb 17, 2025
@kooWZ kooWZ added the high priority It should be worked on NOW label Feb 17, 2025
@kooWZ
Copy link
Member

kooWZ commented Feb 17, 2025

不能复现,似乎只有研究生才会出现这个问题?

@w568w
Copy link
Member

w568w commented Feb 17, 2025

不能复现,似乎只有研究生才会出现这个问题?

是的,只有研究生课表才需要验证码。


根据我此前和报错用户的交流,该问题发生时,确实获取到了正确的验证码链接,然而 Image.network(imageUrl) 不知为何显示为乱码。

我个人的猜测是,Image.network() 完全绕过了我们的网络请求栈(即是说,没有使用 Dio,而是直接使用内部的网络请求库),导致发送的请求被拦截,返回的错误码页被当成图片来解码而显示乱码。可能原因是 Header 不对(UA 被拦截)。

此问题在挂 EasyConnect 时也会出现。

@dingdang-231
Copy link
Author

似乎是更新后出现的问题,之前是正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority It should be worked on NOW
Projects
None yet
Development

No branches or pull requests

3 participants