浏览代码

update 一个圈圈

master
dengbiao 8 个月前
父节点
当前提交
1834eada57
共有 1 个文件被更改,包括 4 次插入4 次删除
  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 查看文件

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


正在加载...
取消
保存