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