wangchuanjin 2 年之前
父节点
当前提交
2a5447f7e8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      p/public.go

+ 2 - 0
p/public.go

@@ -769,6 +769,7 @@ func getEntPushSet(mgo *MongodbSim, msl *Mysql, entUserId int, phone string) *ma
 		"s_jpushid":     1,
 		"s_opushid":     1,
 		"s_appponetype": 1,
+		"i_applystatus": 1,
 	}, `{"s_phone":-1}`, false, -1, -1)
 	if !ok || users == nil || len(*users) == 0 {
 		logger.Info("user表中没有找到该企业用户", entUserId)
@@ -784,6 +785,7 @@ func getEntPushSet(mgo *MongodbSim, msl *Mysql, entUserId int, phone string) *ma
 		if user["s_m_openid"] == nil && user["i_ispush"] == nil && s_m_openid != "" && i_ispush == 1 {
 			user["s_m_openid"] = s_m_openid
 			user["i_ispush"] = i_ispush
+			user["i_applystatus"] = v["i_applystatus"]
 		}
 		if user["s_jpushid"] == nil && user["s_opushid"] == nil && user["s_appponetype"] == nil && s_appponetype != "" && (s_jpushid != "" || s_opushid != "") {
 			user["s_jpushid"] = s_jpushid