wangshan 7 lat temu
rodzic
commit
acc41973a1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/jfw/modules/weixin/src/wx/wx.go

+ 1 - 1
src/jfw/modules/weixin/src/wx/wx.go

@@ -453,7 +453,7 @@ func Subscribe(w ResponseWriter, r *Request) {
 	var pccodepre = ""
 	if len(strings.Split(r.EventKey, "_")) == 2 {
 		source = strings.Split(r.EventKey, "_")[1]
-	} else if len(strings.Split(r.EventKey, "_")) == 3 {
+	} else if len(strings.Split(r.EventKey, "_")) >= 3 {
 		source = strings.SplitN(r.EventKey, "_", 2)[1]
 	}
 	shareData := redis.Get("sso", "p_shareData_"+source)