Browse Source

Merge branch 'dev_v4.10.1_wh' of qmx/jy into feature/v4.10.1

王浩 5 tháng trước cách đây
mục cha
commit
1267b8cd2e
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      src/jfw/modules/subscribepay/src/service/userAccountInfo.go

+ 10 - 0
src/jfw/modules/subscribepay/src/service/userAccountInfo.go

@@ -653,6 +653,16 @@ func (this *UserAccount) PhoneBind() {
 					"s_nickname":     (*uData)["s_nickname"],
 					"s_headimageurl": (*uData)["s_headimageurl"],
 				}
+				// 新用户注册 记录来源
+				sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
+				if sourceLabel != "" {
+					data["s_rsource"] = sourceLabel
+				} else {
+					activity := this.GetString("activity")
+					if activity != "" {
+						data["s_rsource"] = activity
+					}
+				}
 				if jy.IsEmail(email) {
 					data["s_email"] = email
 				}