zhangxinlei1996 4 жил өмнө
parent
commit
c3b442bbe5
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/jfw/tag/ad.go

+ 1 - 1
src/jfw/tag/ad.go

@@ -60,7 +60,7 @@ func Ad(s_code string, n int) []adInfo {
 		if ok && res != nil && (*res)["a_son"] != nil {
 			son := (*res)["a_son"].([]interface{})
 			resmap := adHandle(son, s_code)
-			if len(resmap) > 0 {
+			if len(son) > 0 {
 				redis.PutCKV("other", "ad_"+s_code, son)
 			}
 			return resmap