Browse Source

update

master
shenjiachi 20 hours ago
parent
commit
9dbd8ebe81
2 changed files with 9 additions and 4 deletions
  1. +6
    -1
      consume/egg_energy_team_assistance_consume.go
  2. +3
    -3
      go.mod

+ 6
- 1
consume/egg_energy_team_assistance_consume.go View File

@@ -76,7 +76,11 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error {
assistanceDb := implement.NewEggEnergyTeamAssistanceDb(db.Db)
now := time.Now()
date := now.Format("2006-01-02")
teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOne(msg.Uid, date)
session := db.Db.Where("")
teamAssistance, err := assistanceDb.EggEnergyTeamAssistanceGetOneByParamsBySession(session, map[string]interface{}{
"key": "sign_id",
"value": msg.SignId,
})
if err != nil {
return err
}
@@ -87,6 +91,7 @@ func handleEggEnergyTeamAssistanceDataConsume(msgData []byte) error {
AssistedTimes: 1,
RewardScore: utils2.Float64ToStr(msg.AssistanceValue),
Date: date,
SignId: msg.SignId,
CreateAt: now.Format("2006-01-02 15:04:05"),
UpdateAt: now.Format("2006-01-02 15:04:05"),
}


+ 3
- 3
go.mod View File

@@ -4,11 +4,11 @@ go 1.19

// replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models

//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules
replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241220062624-0d8e6dd68add
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241220073933-42987f91e880
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221112843-1f1b3d2101e4
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241221113325-b85d5be48888
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
github.com/boombuler/barcode v1.0.1


Loading…
Cancel
Save