新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 079333de authored by kunkkawu's avatar kunkkawu

update event log

parent 8e8b65f9
......@@ -73,7 +73,7 @@ func (h *CertificateEventHandler) handleEvent(e *common.ContractEventInfo) {
enterprise := &model.Enterprise{}
if err := tx.Where("enterprise_address = ? and chain_info_id = ?",
certification.RequestAddress, h.chainInfoId).First(enterprise).Error; err != nil {
h.logger.Errorf("[event] query certification enterprise error: %v", e)
h.logger.Errorf("[event] query certification enterprise error: %v", err)
tx.Rollback()
return
}
......@@ -82,7 +82,7 @@ func (h *CertificateEventHandler) handleEvent(e *common.ContractEventInfo) {
assetCertification := &model.AssetCertification{}
if err := tx.Where("asset_id = ? and enterprise_id = ? and status = ? and chain_info_id = ?", asset.Id,
enterprise.Id, model.CertificationStatusVerify, h.chainInfoId).First(assetCertification).Error; err != nil {
h.logger.Errorf("[event] asset certification status error: %v", e)
h.logger.Errorf("[event] asset certification status error: %v", err)
tx.Rollback()
return
}
......@@ -95,7 +95,7 @@ func (h *CertificateEventHandler) handleEvent(e *common.ContractEventInfo) {
assetCertification.Status = model.CertificationStatusFinish
if err := tx.Where("id = ?", assetCertification.Id).UpdateColumns(assetCertification).Error; err != nil {
h.logger.Errorf("[event] update asset certification error: %v", e)
h.logger.Errorf("[event] update asset certification error: %v", err)
tx.Rollback()
return
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment