|
@@ -108,7 +108,7 @@ func (i *Info) Clue() {
|
|
Whether.AfterRetainedCapital(userId)
|
|
Whether.AfterRetainedCapital(userId)
|
|
//免费用户留资 获取采购单位画像、企业画像、附件下载的权益(一次)
|
|
//免费用户留资 获取采购单位画像、企业画像、附件下载的权益(一次)
|
|
//判断免费用户留资,无需在更改留资情况 已留资将不在留资
|
|
//判断免费用户留资,无需在更改留资情况 已留资将不在留资
|
|
- if PortraitExperience(source) && len(strings.Split(source, "_")) > 2 && Free_users(source, userId) {
|
|
|
|
|
|
+ if PortraitExperienceNew(source) && len(strings.Split(source, "_")) > 2 && Free_users(source, userId) {
|
|
FreeuserManage(source, userId)
|
|
FreeuserManage(source, userId)
|
|
}
|
|
}
|
|
return entity.NewResultSales{Error_code: 1, Error_msg: "", Data: true}
|
|
return entity.NewResultSales{Error_code: 1, Error_msg: "", Data: true}
|
|
@@ -415,10 +415,17 @@ func (i *Info) CollectInfo() {
|
|
i.ServeJson(r)
|
|
i.ServeJson(r)
|
|
}
|
|
}
|
|
|
|
|
|
-func PortraitExperience(source string) bool {
|
|
|
|
|
|
+func PortraitExperienceNew(source string) bool {
|
|
if strings.HasSuffix(source, "_freeuser") || strings.HasPrefix(source, "ent_portrait") || strings.HasPrefix(source, "buyer_portrait") {
|
|
if strings.HasSuffix(source, "_freeuser") || strings.HasPrefix(source, "ent_portrait") || strings.HasPrefix(source, "buyer_portrait") {
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func PortraitExperience(source string) bool {
|
|
|
|
+ if strings.HasSuffix(source, "_freeuser") {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
for _, s := range sc {
|
|
for _, s := range sc {
|
|
if s == source {
|
|
if s == source {
|
|
return true
|
|
return true
|