Pārlūkot izejas kodu

update 一个圈圈

master
dengbiao pirms 8 mēnešiem
vecāks
revīzija
1834eada57
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  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 Parādīt failu

@@ -473,13 +473,13 @@ func DealAvailableGreenEnergyCoin(session *xorm.Session, kind int, amount, amoun
}
} else {
oneCirclesGreenEnergyPrice.Price = nowPriceValue
updateAffected, err1 := db.OneCirclesGreenEnergyPriceUpdate(session, oneCirclesGreenEnergyPrice.Id, oneCirclesGreenEnergyPrice, "price")
_, err1 := db.OneCirclesGreenEnergyPriceUpdate(session, oneCirclesGreenEnergyPrice.Id, oneCirclesGreenEnergyPrice, "price")
if err1 != nil {
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)


Notiek ielāde…
Atcelt
Saglabāt