mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
[优化] 将部分在services中抛出异常使用error返回
This commit is contained in:
@@ -17,7 +17,7 @@ func InitEvents() {
|
||||
// 监听规则链改变 更新所有绑定改规则链的产品
|
||||
global.EventEmitter.On(events.ProductChainRuleEvent, func(ruleId, codeData string) {
|
||||
global.Log.Infof("规则链%s变更", ruleId)
|
||||
list := services.ProductModelDao.FindList(entity.Product{
|
||||
list, _ := services.ProductModelDao.FindList(entity.Product{
|
||||
RuleChainId: ruleId,
|
||||
})
|
||||
if list != nil {
|
||||
|
||||
Reference in New Issue
Block a user