Kaynağa Gözat

update 区块星链

tags/v3.2.5
DengBiao 2 yıl önce
ebeveyn
işleme
c86db27074
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      rule/block_star_chain_settlement.go

+ 5
- 5
rule/block_star_chain_settlement.go Dosyayı Görüntüle

@@ -737,14 +737,14 @@ func DealDestroyCoin(session *xorm.Session, kind int, amount float64, title stri
chain.TotalPublishCoin = blockStarChainFlow.AfterTotalPublishCoin
chain.TotalDestroyCoin = blockStarChainFlow.AfterTotalDestroyCoin
//更新 `block_star_chain` 表
updateAffected, err := db.BlockStarChainUpdate(session, chain.Id, chain)
_, err := db.BlockStarChainUpdate(session, chain.Id, chain)
if err != nil {
return err
}
if updateAffected == 0 {
err = errors.New("更新 block_star_chain 记录失败")
return err
}
//if updateAffected == 0 {
// err = errors.New("更新 block_star_chain 记录失败")
// return err
//}

//插入 `block_star_chain_flow` 记录
_, err = db.BlockStarChainFlowInsert(session, &blockStarChainFlow)


Yükleniyor…
İptal
Kaydet