feat: 徽章处理
This commit is contained in:
@@ -162,11 +162,17 @@ func (userService *UserService) MiniLogin(code string) (result *system.User, err
|
||||
UserId: newUser.Id,
|
||||
MiniOpenId: wxResp.Openid,
|
||||
Nickname: newUser.Name,
|
||||
LevelId: "9bc0cd78-070f-11f1-8e90-1a43c43655d1",
|
||||
CurrentSunlight: 0,
|
||||
TotalSunlight: 0,
|
||||
PlantCount: 0,
|
||||
CareCount: 0,
|
||||
PostCount: 0,
|
||||
WaterCount: 0,
|
||||
FertilizeCount: 0,
|
||||
RepotCount: 0,
|
||||
PruneCount: 0,
|
||||
PhotoCount: 0,
|
||||
}
|
||||
if err := tx.Create(&profile).Error; err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user