feat: 个人中心发布
This commit is contained in:
@@ -56,6 +56,7 @@ func MigrateTable() {
|
||||
plant.BadgeConfig{}, //徽章配置
|
||||
plant.UserProfile{}, //用户资料
|
||||
plant.UserBadge{}, //用户徽章
|
||||
plant.UserStar{}, //用户收藏
|
||||
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ func InitTimer() {
|
||||
option = append(option, cron.WithSeconds())
|
||||
|
||||
// 任务一:每天8点30执行 发送植物养护提醒
|
||||
_, err := global.Timer.AddTaskByFuncWithSecond("SendCareRemind", "0 30 8 * * *", func() {
|
||||
_, err := global.Timer.AddTaskByFuncWithSecond("SendCareRemind", "0 15 9 * * *", func() {
|
||||
err1 := task.SendCareMsg()
|
||||
if err1 != nil {
|
||||
global.Logger.Error("定时发送植物养护提醒失败", zap.Error(err1))
|
||||
|
||||
Reference in New Issue
Block a user