|
@@ -5,7 +5,6 @@ import (
|
|
|
"hongze/hongze_clpt/models"
|
|
|
"hongze/hongze_clpt/services"
|
|
|
"hongze/hongze_clpt/utils"
|
|
|
- "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -59,28 +58,28 @@ func (this *BannerNoLoginController) List() {
|
|
|
for _, v := range bannerImgList {
|
|
|
mapImg[v.ImgId] = v
|
|
|
}
|
|
|
- var chartUserTokenByMobile string
|
|
|
- if user.Mobile != "" {
|
|
|
- chartUserTokenByMobile, _ = services.GetUserTokenByMobile(user.Mobile)
|
|
|
- }
|
|
|
- if chartUserTokenByMobile == "" {
|
|
|
- chartUserTokenByMobile = "aiPos"
|
|
|
- }
|
|
|
-
|
|
|
- if user.CompanyId == 1 {
|
|
|
- chartUserTokenByMobile += "&isCustomer=1" // 潜在客户标识
|
|
|
- } else {
|
|
|
- chartUserTokenByMobile += "&isCustomer=0"
|
|
|
- }
|
|
|
+ //var chartUserTokenByMobile string
|
|
|
+ //if user.Mobile != "" {
|
|
|
+ // chartUserTokenByMobile, _ = services.GetUserTokenByMobile(user.Mobile)
|
|
|
+ //}
|
|
|
+ //if chartUserTokenByMobile == "" {
|
|
|
+ // chartUserTokenByMobile = "aiPos"
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ //if user.CompanyId == 1 {
|
|
|
+ // chartUserTokenByMobile += "&isCustomer=1" // 潜在客户标识
|
|
|
+ //} else {
|
|
|
+ // chartUserTokenByMobile += "&isCustomer=0"
|
|
|
+ //}
|
|
|
|
|
|
var listA []*models.CygxBannerResp
|
|
|
var listB []*models.CygxBannerResp
|
|
|
var listC []*models.CygxBannerResp
|
|
|
for _, v := range list {
|
|
|
v.BannerUrlResp = services.GetBannerUrlBody(v.Link)
|
|
|
- if strings.Contains(v.Link, "aiPos") {
|
|
|
- v.Link += "?token=" + chartUserTokenByMobile
|
|
|
- }
|
|
|
+ //if strings.Contains(v.Link, "aiPos") {
|
|
|
+ // v.Link += "?token=" + chartUserTokenByMobile
|
|
|
+ //}
|
|
|
if v.ListType == "A" {
|
|
|
listA = append(listA, v)
|
|
|
} else if v.ListType == "B" {
|