mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 15:29:38 +08:00
[fix]规则链添加或修改存在多条主链
This commit is contained in:
@@ -114,7 +114,8 @@ func (p *RuleChainApi) UpdateRuleRoot(rc *restfulx.ReqCtx) {
|
||||
var rule entity.RuleChain
|
||||
restfulx.BindJsonAndValid(rc, &rule)
|
||||
// 修改主链为普通链
|
||||
p.RuleChainApp.UpdateByRoot()
|
||||
err := p.RuleChainApp.UpdateByRoot()
|
||||
biz.ErrIsNil(err, "修改主链错误")
|
||||
// 修改当前链为主链
|
||||
p.RuleChainApp.Update(rule)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user