浏览代码

fix:取地址校验空值

duxin 3 年之前
父节点
当前提交
67c296d3e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/consumer/internal/logic/supplyinfosearchlogic.go

+ 1 - 1
rpc/consumer/internal/logic/supplyinfosearchlogic.go

@@ -57,7 +57,7 @@ func (l *SupplyInfoSearchLogic) SupplyInfoSearch(in *consumerinfo.SupplyInfoSear
 	}
 	logx.Info("-------", total, "----", in.Keywords)
 	var infos []*consumerinfo.SupplyList
-	if len(*list) > 0 {
+	if list != nil && len(*list) > 0 {
 		for _, v := range *list {
 			detail := []string{}
 			if v["highlight"] != nil {