浏览代码

feat:日志处理

wangshan 1 年之前
父节点
当前提交
c8f36049a6
共有 1 个文件被更改,包括 3 次插入0 次删除
  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)