Browse Source

update

master
DengBiao 11 months ago
parent
commit
3a5a3bcd4c
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      rule/one_circles/one_circles_sign_in_green_energy_settlement.go

+ 7
- 5
rule/one_circles/one_circles_sign_in_green_energy_settlement.go View File

@@ -111,11 +111,13 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string) (err erro
}

//5、减少“活跃赠送” 中的绿色能量
err = DealAvailableGreenEnergyCoin(session, int(enum.SignInReward), reduceTotalGreenEnergy, enum.SignInReward.String(), oneCirclesGreenEnergyBasicSetting, oneCirclesGreenEnergyBasicSetting.NowPrice)
if err != nil {
_ = session.Rollback()
fmt.Println("err:::::55555", err)
return err
if reduceTotalGreenEnergy > 0 {
err = DealAvailableGreenEnergyCoin(session, int(enum.SignInReward), reduceTotalGreenEnergy, enum.SignInReward.String(), oneCirclesGreenEnergyBasicSetting, oneCirclesGreenEnergyBasicSetting.NowPrice)
if err != nil {
_ = session.Rollback()
fmt.Println("err:::::55555", err)
return err
}
}
err = session.Commit()
if err != nil {


Loading…
Cancel
Save