Browse Source

update 一个圈圈

master
dengbiao 8 months ago
parent
commit
1834eada57
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      rule/one_circles/one_circles_deal_available_green_energy_points.go

+ 4
- 4
rule/one_circles/one_circles_deal_available_green_energy_points.go View File

@@ -473,13 +473,13 @@ func DealAvailableGreenEnergyCoin(session *xorm.Session, kind int, amount, amoun
} }
} else { } else {
oneCirclesGreenEnergyPrice.Price = nowPriceValue oneCirclesGreenEnergyPrice.Price = nowPriceValue
updateAffected, err1 := db.OneCirclesGreenEnergyPriceUpdate(session, oneCirclesGreenEnergyPrice.Id, oneCirclesGreenEnergyPrice, "price")
_, err1 := db.OneCirclesGreenEnergyPriceUpdate(session, oneCirclesGreenEnergyPrice.Id, oneCirclesGreenEnergyPrice, "price")
if err1 != nil { if err1 != nil {
return err1 return err1
} }
if updateAffected <= 0 {
return errors.New("更新 one_circles_green_energy_price 失败")
}
//if updateAffected <= 0 {
// return errors.New("更新 one_circles_green_energy_price 失败")
//}
} }
} }
_, err := db.OneCirclesGreenEnergyBasicSettingUpdate(session, chain.Id, chain) _, err := db.OneCirclesGreenEnergyBasicSettingUpdate(session, chain.Id, chain)


Loading…
Cancel
Save