瀏覽代碼

Merge branch 'release/v4.8.74_ws' of qmx/jy into release/v4.8.74

wangshan 1 年之前
父節點
當前提交
d18673e130
共有 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)