[优化] 将部分在services中抛出异常使用error返回

This commit is contained in:
PandaX
2023-12-29 11:19:17 +08:00
parent 7669cc208a
commit 7abc0a6840
24 changed files with 534 additions and 440 deletions

View File

@@ -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 {