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