Browse Source

no message

xingzai 2 years ago
parent
commit
04c7e3f5c1
1 changed files with 6 additions and 2 deletions
  1. 6 2
      services/resource_data.go

+ 6 - 2
services/resource_data.go

@@ -222,10 +222,14 @@ func GetResourceDataList(condition string, pars []interface{}, startSize, pageSi
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].City = v.City
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].City = v.City
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ActivityTimeText = v.ActivityTimeText
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ActivityTimeText = v.ActivityTimeText
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ActivityTime = v.ActivityTime
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ActivityTime = v.ActivityTime
-			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].TripImgLink = v.TripImgLink
+			if v.Days > 0 {
+				mapItems[fmt.Sprint("activityspecial", v.ActivityId)].TripImgLink = v.TripImgLinkFix
+			} else {
+				mapItems[fmt.Sprint("activityspecial", v.ActivityId)].TripImgLink = v.TripImgLink
+			}
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].IsSignup = v.IsSignup
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].IsSignup = v.IsSignup
+			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].IsTrip = v.IsTrip
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ImgUrl = imgUrlResp
 			mapItems[fmt.Sprint("activityspecial", v.ActivityId)].ImgUrl = imgUrlResp
-			//mapItems[fmt.Sprint("activityspecial", v.ActivityId)].PublishDate = v.ActivityTime
 		}
 		}
 	}
 	}