|
@@ -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)
|