mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-29 09:21:26 +08:00
[优化] 规则链优化
This commit is contained in:
@@ -111,7 +111,8 @@ func (p *ProductApi) InsertProduct(rc *restfulx.ReqCtx) {
|
||||
data.OrgId = rc.LoginAccount.OrganizationId
|
||||
// 如果未设置规则链,默认为主链
|
||||
if data.RuleChainId == "" {
|
||||
root := p.RuleApp.FindOneByRoot()
|
||||
root, err := p.RuleApp.FindOneByRoot()
|
||||
biz.ErrIsNil(err, "规则链查询错误")
|
||||
data.RuleChainId = root.Id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user