更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -2,16 +2,6 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// AuthAppLoginTicket 移动端免登录票据:yz_auth_app_login_ticket
|
||||
//
|
||||
// 用途:移动端(uniapp APP / 小程序)已用统一认证登录后,打开 Web 端业务页面时
|
||||
// 通过本票据把登录态传递过去,避免 webview 里再次弹出统一登录页。
|
||||
//
|
||||
// 流程(与公众号一次性登录令牌 yz_platform_wechat_mp_login_token 同构):
|
||||
// POST /auth/app-ticket 移动端带 Bearer 令牌 → 签发一次性票据
|
||||
// POST /auth/app-ticket/exchange Web 端带票据 → 核销并换发 Web 端令牌
|
||||
//
|
||||
// 票据一次性、短时效(默认 60 秒),核销用 CAS 防重放。
|
||||
type AuthAppLoginTicket struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Ticket string `orm:"column(ticket);size(64)" json:"ticket"`
|
||||
|
||||
Reference in new issue
Block a user