|
@@ -67,6 +67,7 @@ func GetHappyOrchardUserSeedRecordData(engine *xorm.Engine, record models.HappyO |
|
|
|
|
|
|
|
|
func getHappyOrchardUserSeedStage(record models.HappyOrchardUserSeedRecord, seed models.HappyOrchardSeed) (seedState int, nextSeedStateWaters int) { |
|
|
func getHappyOrchardUserSeedStage(record models.HappyOrchardUserSeedRecord, seed models.HappyOrchardSeed) (seedState int, nextSeedStateWaters int) { |
|
|
seedState = -1 |
|
|
seedState = -1 |
|
|
|
|
|
nextSeedStateWaters = seed.NeedWatersNumForStage0 |
|
|
if record.WaterNums >= seed.NeedWatersNumForStage0 && record.WaterNums < seed.NeedWatersNumForStage1 { |
|
|
if record.WaterNums >= seed.NeedWatersNumForStage0 && record.WaterNums < seed.NeedWatersNumForStage1 { |
|
|
seedState = 0 |
|
|
seedState = 0 |
|
|
nextSeedStateWaters = seed.NeedWatersNumForStage1 |
|
|
nextSeedStateWaters = seed.NeedWatersNumForStage1 |
|
|