From a6022f6746fa4b521b008a9016954af3f05c3f45 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 6 Feb 2024 14:57:07 +0800 Subject: [PATCH] 1 --- .../one_circles/one_circles_public_platoon_give_activty_coin.go | 2 +- rule/one_circles/one_circles_sign_in_green_energy_settlement.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go index b962ad8..be9c6ac 100644 --- a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go +++ b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go @@ -87,7 +87,7 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid fatherReward := rewardSystemMap[k+1] //判断是否活跃 var m model.OneCirclesGreenEnergySignIn - has, err33 := engine.Where("uid =?", fatherUid).And("start_time >=?", time.Now().Format("2006-01-02")+"00:00:00").Get(&m) + has, err33 := engine.Where("uid =?", fatherUid).And("start_time >=?", time.Now().Format("2006-01-02")+" 00:00:00").Get(&m) if err33 != nil { return err33 } diff --git a/rule/one_circles/one_circles_sign_in_green_energy_settlement.go b/rule/one_circles/one_circles_sign_in_green_energy_settlement.go index e50ecdf..57dcd33 100644 --- a/rule/one_circles/one_circles_sign_in_green_energy_settlement.go +++ b/rule/one_circles/one_circles_sign_in_green_energy_settlement.go @@ -102,7 +102,7 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string) (err erro } //TODO::判断是否活跃 var m model.OneCirclesGreenEnergySignIn - has, err3333333 := engine.Where("uid =?", relate.ParentUid).And("start_time >=?", time.Now().Format("2006-01-02")+"00:00:00").Get(&m) + has, err3333333 := engine.Where("uid =?", relate.ParentUid).And("start_time >=?", time.Now().Format("2006-01-02")+" 00:00:00").Get(&m) if err3333333 != nil { _ = session.Rollback() fmt.Println("err:::::3333333", err3333333)