Browse Source

Merge branch 'dev_v4.8.91.1_wh' of qmx/jy into hotfix/v4.8.94.1

王浩 1 year ago
parent
commit
048ca43854
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/jfw/modules/weixin/src/wx/wx.go

+ 3 - 0
src/jfw/modules/weixin/src/wx/wx.go

@@ -1155,6 +1155,9 @@ func updatePushSet(openid string) {
 		return
 	}
 	entData := tools.Mysql.Find("entniche_user", map[string]interface{}{"phone": phone}, "id", "", -1, -1)
+	if entData == nil || len(*entData) == 0 {
+		return
+	}
 	for _, data := range *entData {
 		entUser := util.Int64All(data["id"])
 		tools.MQFW.Update("ent_user", map[string]interface{}{