|
|
@@ -72,7 +72,7 @@ func HandleBlockChainInitNotify(ctx *context.Context) { |
|
|
|
repo.BlockChainStatus = models.RepoBlockChainSuccess |
|
|
|
repo.ContractAddress = req.ContractAddress |
|
|
|
|
|
|
|
if err = models.UpdateRepositoryCols(repo, "block_chain_status", "contract_address"); err != nil { |
|
|
|
if err = repo.UpdateBlockChain(); err != nil { |
|
|
|
log.Error("UpdateRepositoryCols failed:%v", err.Error(), ctx.Data["msgID"]) |
|
|
|
ctx.JSON(200, map[string]string{ |
|
|
|
"code": "-1", |
|
|
|