Browse Source

Merge branch 'feature/v4.10.9' of https://jygit.jydev.jianyu360.cn/qmx/jy into feature/v4.10.9

wangchuanjin 4 months ago
parent
commit
e099375515

+ 9 - 9
src/jfw/front/login.go

@@ -193,21 +193,21 @@ func (l *Login) Login() error {
 					}
 					// 新用户注册 记录来源
 					sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
-					if sourceLabel != "" { //合作商
-						data["s_rsource"] = sourceLabel
-						channelCode = sourceLabel
-					} else if sessVal["RSource"] != nil {
-						data["s_rsource"] = sessVal["RSource"]
+					if source == "" {
+						if sourceLabel != "" { //合作商
+							data["s_rsource"] = sourceLabel
+							channelCode = sourceLabel
+						} else if sessVal["RSource"] != nil {
+							data["s_rsource"] = sessVal["RSource"]
+						}
+					} else {
+						data["s_rsource"] = source
 					}
 					if ck, err := l.GetCookie("source"); err == nil && ck.Value != "" {
 						//cookie中记录用户的来源
 						data["s_newsource"] = ck.Value
 						data["s_module"] = GetModule(ck.Value) //根据cookie中记录的来源获取模块
 					}
-
-					if source != "" {
-						data["s_tracksource"] = source
-					}
 					//获取base_user_id
 					resp := config.Middleground.UserCenter.UserAdd(pb.UserAddReq{
 						Appid: "10000",

+ 1 - 1
src/jfw/front/org_structure.go

@@ -181,7 +181,7 @@ func (this *OrgStructure) AutoLogon() error {
 				"s_nickname":  name,
 				"s_myemail":   mail,
 			}
-			source := this.GetString("source")
+
 			if ck, err := this.GetCookie("source"); err == nil && ck.Value != "" {
 				//cookie中记录用户的来源
 				data["s_newsource"] = ck.Value

+ 1 - 0
src/jfw/modules/publicapply/src/detail/dao/bidding.go

@@ -257,6 +257,7 @@ func (bi *BidInfo) BiddingDataFormatNoPower(obj map[string]interface{}, id, deta
 	}
 	bi.BaseInfo.Title = title
 	bi.BaseInfo.SubType = common.ObjToString(obj["subtype"])
+	bi.BaseInfo.TopType = common.ObjToString(obj["toptype"])
 	bi.BaseInfo.Area = common.ObjToString(obj["area"])
 	bi.BaseInfo.City = common.ObjToString(obj["city"])
 	bi.BaseInfo.BuyerClass = common.ObjToString(obj["buyerclass"])