From c0cc2e73fe766cb1b1699f822512a1b41863526c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 29 May 2024 10:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/micro_applications/happy_orchard_user_seed_record.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rule/micro_applications/happy_orchard_user_seed_record.go b/rule/micro_applications/happy_orchard_user_seed_record.go index 600fb73..104f6d4 100644 --- a/rule/micro_applications/happy_orchard_user_seed_record.go +++ b/rule/micro_applications/happy_orchard_user_seed_record.go @@ -47,9 +47,9 @@ func GetHappyOrchardUserSeedRecordData(engine *xorm.Engine, record models.HappyO } seedState, nextSeedStateWaters := getHappyOrchardUserSeedStage(record, *happyOrchardSeed) resp.RecordPlantingStage = seedState - resp.RecordPlantingStageZh = stageNameCustomData[resp.RecordPlantingStage] + resp.RecordPlantingStageZh = stageNameCustomData[resp.RecordPlantingStage+1] resp.RecordPlantingNextStage = resp.RecordPlantingStage + 1 - resp.RecordPlantingNextStageZh = stageNameCustomData[resp.RecordPlantingNextStage] + resp.RecordPlantingNextStageZh = stageNameCustomData[resp.RecordPlantingNextStage+1] resp.RecordPlantingNextStageNeedWaterNums = nextSeedStateWaters / happyOrchardBasicSetting.WateringEveryTimeWaterDroplet resp.RecordPlantingNextStageNeedWater = nextSeedStateWaters } @@ -161,7 +161,7 @@ func UserReplaceSeed(engine *xorm.Engine, record models.HappyOrchardUserSeedReco if err != nil { return } - _, err = happyOrchardUserWatersDb.UpdateHappyOrchardUserWatersBySess(uid, happyOrchardUserWaters, "replace_seed_nums") + _, err = happyOrchardUserWatersDb.UpdateHappyOrchardUserWaters(uid, happyOrchardUserWaters, "replace_seed_nums") if err != nil { return err }