Przeglądaj źródła

fix:取地址校验空值

duxin 3 lat temu
rodzic
commit
67c296d3e2

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