Sfoglia il codice sorgente

剑鱼 标讯跳转

wangshan 5 anni fa
parent
commit
bb6a2e5d13
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/src/qfw/mobile/wxmenu.go

+ 1 - 1
core/src/qfw/mobile/wxmenu.go

@@ -62,7 +62,7 @@ func (m *Mobile) Wxex() error {
 					queryop := make(M)
 					queryop["s_m_openid"] = (*userdata)["s_m_openid"]
 					jysb := mongodb.Find("jy_subscribe", queryop, `{"l_date":-1}`, `{"s_event":1}`, false, 0, 1)
-					if (*jysb)[0]["s_event"] == "subscribe" {
+					if jysb != nil && len(*jysb) > 0 && (*jysb)[0]["s_event"] == "subscribe" {
 						newsubscribe = "Y"
 					}
 				}