Browse Source

feat:增加判断

wangchuanjin 2 years ago
parent
commit
02cd887a01
1 changed files with 3 additions and 0 deletions
  1. 3 0
      p/public.go

+ 3 - 0
p/public.go

@@ -518,6 +518,9 @@ func GetWxTplMsg(subSet *SubSet) (string, string) {
 	if len([]rune(area)) > 10 {
 		area = string([]rune(area)[:10]) + "..."
 	}
+	if area == "" {
+		area = "全国"
+	}
 	return keyword, area
 }