ソースを参照

update

master
DengBiao 9ヶ月前
コミット
3a5a3bcd4c
1個のファイルの変更7行の追加5行の削除
  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 ファイルの表示

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


読み込み中…
キャンセル
保存