Ver código fonte

update 一个圈圈

master
DengBiao 9 meses atrás
pai
commit
5e7ef75073
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      rule/one_circles/one_circles_activity_coin_auto_exchange_green_energy.go

+ 2
- 2
rule/one_circles/one_circles_activity_coin_auto_exchange_green_energy.go Ver arquivo

@@ -270,12 +270,12 @@ func ActivityCoinAutoExchangeGreenEnergy(engine *xorm.Engine, masterId string) (

//3、当前 "个人活跃积分"可以自动兑换的用户数据 && "团队活跃积分"可以自动兑换的用户数据
var list1, list2 []model.UserVirtualAmount
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.PersonActivePointsCoinId).And("amount >=?", autoExchangeNumsByPerson).Limit(200, 0).Find(&list1)
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.PersonActivePointsCoinId).And("amount >=?", autoExchangeNumsByPerson).Limit(1000, 0).Find(&list1)
if err != nil {
fmt.Println("err:::::1111", err.Error())
return
}
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.TeamActivePointsCoinId).And("amount >=?", autoExchangeNumsByTeam).Limit(200, 0).Find(&list2)
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.TeamActivePointsCoinId).And("amount >=?", autoExchangeNumsByTeam).Limit(1000, 0).Find(&list2)
if err != nil {
fmt.Println("err:::::2222", err.Error())
return


Carregando…
Cancelar
Salvar