DengBiao pirms 10 mēnešiem
vecāks
revīzija
2b5b842360
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. +5
    -4
      rule/one_circles/one_circles_available_green_energy_settlement.go

+ 5
- 4
rule/one_circles/one_circles_available_green_energy_settlement.go Parādīt failu

@@ -112,13 +112,14 @@ func NewCalcPriceReductionFormula(userExchangeNumsValue string, oneCirclesGreenE
func JudgeUserIsCanBuyWelfareOrders(engine *xorm.Engine, uid int) (err error) {
now := time.Now()
//1、查找 `one_circles_green_energy_basic_setting` 基础设置
oneCirclesGreenEnergyBasicSetting, err := db.OneCirclesGreenEnergyBasicSettingGetOneByParams(engine, map[string]interface{}{
"key": "is_open",
"value": 1,
})
var oneCirclesGreenEnergyBasicSetting model.OneCirclesGreenEnergyBasicSetting
has, err := engine.Where("is_open = 1").Get(&oneCirclesGreenEnergyBasicSetting)
if err != nil {
return
}
if !has {
return
}
var welfareOrdersLimit *md2.WelfareOrdersLimit
err = json.Unmarshal([]byte(oneCirclesGreenEnergyBasicSetting.WelfareOrdersLimit), &welfareOrdersLimit)
if err != nil {


Notiek ielāde…
Atcelt
Saglabāt