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

易校园未绑定宿舍用户的电费查询问题 #104

Open
MangoGovo opened this issue Sep 15, 2024 · 2 comments
Open

易校园未绑定宿舍用户的电费查询问题 #104

MangoGovo opened this issue Sep 15, 2024 · 2 comments

Comments

@MangoGovo
Copy link

如果新生没在易校园平台充过值,然后就不绑定宿舍,这种情况下易校园是弹出选择框,微精弘是直接未知。问题大概定位在:易校园未绑定信息时前端没弹出窗口供用户手动选择门牌号

@j10ccc
Copy link
Collaborator

j10ccc commented Sep 16, 2024

@zhullyb 看看咋处理。原来的流程里,是不是没绑定信息就不能查电费的?

@zhullyb
Copy link

zhullyb commented Sep 16, 2024

@zhullyb 看看咋处理。原来的流程里,是不是没绑定信息就不能查电费的?

那要不然就让后端返回特定标识,前端弹个提示。
易校园的爬虫目前针对电费的工作流如下:

  1. 拿 uid 换取 cookie
  2. 使用 cookie 查询账号绑定的宿舍的四个字段(area_id、building_code、floor_code、room_code)
  3. 使用 cookie 和宿舍相关的四个字段查询寝室电费

如果没有在易校园为寝室充值过电费,则易校园不认为该用户与寝室有绑定关系

至于易校园的弹出窗口,不建议微精弘进行模仿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants