Parcourir la source

update

master
DengBiao il y a 9 mois
Parent
révision
3a5a3bcd4c
1 fichiers modifiés avec 7 ajouts et 5 suppressions
  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 Voir le fichier

@@ -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 {


Chargement…
Annuler
Enregistrer