Skip to content

添加微信小程序用API,增加了新的鉴权方式#966

Open
HelloWorldZTR wants to merge 55 commits intoYuanpei-Intelligence:developfrom
HelloWorldZTR:mini-app
Open

添加微信小程序用API,增加了新的鉴权方式#966
HelloWorldZTR wants to merge 55 commits intoYuanpei-Intelligence:developfrom
HelloWorldZTR:mini-app

Conversation

@HelloWorldZTR
Copy link
Contributor

以下是完全重写的部分:

  • 微信小程序绑定和登录
  • 地下室预约(完全拆出来并且整理了遗留代码)
  • 元气商城 (复用了部分代码,还需要进一步清理)
  • 书房
  • 反馈中心(只完成了基础的功能API,需要补充更多的API endpoints)
  • 小组订阅(只写了后端,且需要修改)

其余没有重写的部分,采用webview嵌入网页的方式暂时兼容一下,后续还需补充
主要是鉴权部分修改较大,此部分应重点关注
另外部署的时候,config.json里面需要填写appid和app secret

HelloWorldZTR and others added 30 commits September 8, 2025 07:37
加入更详细的命令指示
Clean validation logic for appointment
Convert subscribeOrganization and saveSubscribeStatus from app/views.py
to REST API endpoints under api/group/ module:
- GET /api/v2/group/subscriptions/ - List organizations with subscription status
- POST /api/v2/group/subscriptions/update/ - Update subscription status
 Introduce search-users endpoint
 Update test cases to reflect new endpoint names and add tests
添加了元气商城部分的api,同时完善了views中的extend_schema
不允许非个人和小组的账号绑定
Add optional username parameter for login, implement account management features, and introduce GetMyAccountsView for retrieving accessible accounts. Update JWT issuance to include account_id and improve error handling for user permissions.
… DailyLogin response, and enhance NotificationViewSet with serializer class to keep DRF spectacular happy
将group重命名为org
修复了appoint的test里面一些名字错误
修复了一些DRF docs渲染时候的warning
HelloWorldZTR and others added 25 commits February 3, 2026 08:31
补充了元气商城api的tests,并完善了相关api以便于测试
Miniprograms can use /redirect?token=&to= as a jumpboard to authenticate the user using sessions.
Pages with ?no-navbar query string will now only show the content and not the navbar and sidebar
Added TicketAuthentication class to handle one-time ticket validation for webview redirects. Safer than using JWT token
Miniprograms can use /redirect?token=&to= as a jumpboard to authenticate the user using sessions.
Pages with ?no-navbar query string will now only show the content and not the navbar and sidebar
添加了注释
修复了小组账号绑定导致的越权
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

Successfully merging this pull request may close these issues.

4 participants