Sfoglia il codice sorgente

消息通知默认设置

WH01243 1 anno fa
parent
commit
5d79dfcce4
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      rpc/internal/common/sendWxTmplMsg.go

+ 3 - 3
rpc/internal/common/sendWxTmplMsg.go

@@ -235,11 +235,11 @@ func (stm *WxTmplPush) getUserOpenIdAndWxPushState() error {
 			case "o_msg_active", "o_msg_service", "o_msg_jyschool", "o_msg_privateletter", "o_msg_business", "o_msg_pending":
 				registedate := common.Int64All(uData["l_registedate"])
 				s_m_openid := common.InterfaceToStr(uData["s_m_openid"])
-				ShowWx:=false
+				ShowWx := false
 				if s_m_openid != "" {
 					//微信是否关注处理
 					subscribeList := &[]map[string]interface{}{}
-					subscribeList, _ = entity.MQFW.Find(util."jy_subscribe", map[string]interface{}{"s_m_openid": s_m_openid}, `{"l_date":-1}`, `{"s_event":1"}`, true, -1, -1)
+					subscribeList, _ = entity.MQFW.Find("jy_subscribe", map[string]interface{}{"s_m_openid": s_m_openid}, `{"l_date":-1}`, `{"s_event":1"}`, true, -1, -1)
 					if subscribeList != nil && len(*subscribeList) > 0 {
 						s_event := common.InterfaceToStr((*subscribeList)[0]["s_event"])
 						if s_event == "subscribe" {
@@ -252,7 +252,7 @@ func (stm *WxTmplPush) getUserOpenIdAndWxPushState() error {
 						return nil
 					}
 				} else {
-					if registedate > config.ConfigJson.Registedate && ShowWx{
+					if registedate > config.ConfigJson.Registedate && ShowWx {
 						return nil
 					}
 				}