Browse Source

feat:日志处理

wangshan 1 year ago
parent
commit
c8f36049a6
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

@@ -949,6 +949,9 @@ func SaveUserSource(erCode, openid string, state int) {
 				}
 			}
 		}
+		if strings.Contains(channelCode, "JyChCoop") && state == 2 { //关注后 注册信息 更新
+			tools.MQFW.Update("user", "{'s_m_openid':'"+openid+"'}", &map[string]interface{}{"$set": &map[string]interface{}{"s_sourceid": channelCode}}, false, false)
+		}
 		time.Sleep(userCTS)
 		userId, phone, positionId := FindUserId(openid)
 		service.SaveUserSource(channelCode, userId, phone, ip, state, positionId)