fix: 调整个人中心字段

This commit is contained in:
Blizzard
2026-02-12 08:54:12 +08:00
parent 69e59b0e36
commit a5871e8e71
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ import (
type UserProfile struct {
global.BaseModel
UserId string `json:"userId" gorm:"index;column:user_id"`
MiniOpenId string `gorm:"size:80;column:mini_open_id" json:"miniOpenId" form:"miniOpenId"`
Nickname string `json:"nickname" gorm:"column:nick_name"`
AvatarId string `json:"avatarId" gorm:"column:avatar_id"`
LevelId string `json:"levelId" gorm:"column:level_id"` // 当前等级id
+1
View File
@@ -160,6 +160,7 @@ func (userService *UserService) MiniLogin(code string) (result *system.User, err
}
profile := plant.UserProfile{
UserId: newUser.Id,
MiniOpenId: wxResp.Openid,
Nickname: newUser.Name,
CurrentSunlight: 0,
TotalSunlight: 0,
+1 -1
View File
@@ -67,7 +67,7 @@ func SendCareMsg() error {
//3.构造请求参数 发送订阅消息
payload := SendMessagePayload{
TemplateID: "R7fh3NDpuV8DYqI83HpEQvC8mLJy5xMWFl1qeGN9JIo",
Page: "pages/garden/index",
Page: "pages/tasks/index",
Touser: user.MiniOpenId,
Data: map[string]TemplateDataItem{
"thing2": {