This commit is contained in:
aozhiwei 2024-09-03 11:41:05 +08:00
parent 25ff66cd9c
commit b5c46e24f7

View File

@ -88,8 +88,7 @@ func (this *stackingCec) saveToDb(ds *f5.DataSet) bool {
p := new(itemSoldOut)
if q5.DecodeJson(returnValues, p) == nil {
decodeJsonOk = true
var dbErr error
f5.GetGoStyleDb().Upsert(
dbErr, _, _ := f5.GetGoStyleDb().NewUpsert(
constant.BCEVENT_DB,
"t_staking_cec_record",
[][]string{
@ -111,9 +110,6 @@ func (this *stackingCec) saveToDb(ds *f5.DataSet) bool {
{"amount", amount},
{"createtime", createTime},
{"modifytime", modifyTime},
},
func (err error, lastInsertId int64, rowsAffected int64) {
dbErr = err
})
if dbErr != nil {
return false