更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -8,11 +8,6 @@ import (
|
||||
"server/models"
|
||||
)
|
||||
|
||||
// 用户头像统一存在认证中心身份表 yz_auth_identity.avatar:
|
||||
// /auth/userinfo 会返回该字段,前端登录回跳、顶部栏、个人中心都从这里取,
|
||||
// 业务侧(yz_system_tenant_user)不再另存一份,避免两处不一致。
|
||||
|
||||
// UpdateIdentityAvatar 更新身份头像
|
||||
func UpdateIdentityAvatar(identityID uint64, avatarURL string) error {
|
||||
if identityID == 0 {
|
||||
return errors.New("身份ID不能为空")
|
||||
@@ -30,7 +25,6 @@ func UpdateIdentityAvatar(identityID uint64, avatarURL string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// GetIdentityAvatar 读取身份头像;未设置或身份不存在时返回空字符串
|
||||
func GetIdentityAvatar(identityID uint64) string {
|
||||
if identityID == 0 {
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user