|
@@ -17,8 +17,8 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [ |
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["commission"] = float64(v.PromotionRate) / 10 |
|
|
tmp["commission"] = float64(v.PromotionRate) / 10 |
|
|
tmp["coupon_start_time"] = "0" |
|
|
|
|
|
tmp["coupon_end_time"] = "0" |
|
|
|
|
|
|
|
|
tmp["coupon_start_time"] = 0 |
|
|
|
|
|
tmp["coupon_end_time"] = 0 |
|
|
if v.CouponStartTime > 0 { |
|
|
if v.CouponStartTime > 0 { |
|
|
tmp["coupon_start_time"] = v.CouponStartTime |
|
|
tmp["coupon_start_time"] = v.CouponStartTime |
|
|
} |
|
|
} |
|
@@ -60,8 +60,8 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma |
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["commission"] = float64(v.PromotionRate) / 10 |
|
|
tmp["commission"] = float64(v.PromotionRate) / 10 |
|
|
tmp["coupon_start_time"] = "0" |
|
|
|
|
|
tmp["coupon_end_time"] = "0" |
|
|
|
|
|
|
|
|
tmp["coupon_start_time"] = 0 |
|
|
|
|
|
tmp["coupon_end_time"] = 0 |
|
|
if v.CouponStartTime > 0 { |
|
|
if v.CouponStartTime > 0 { |
|
|
tmp["coupon_start_time"] = v.CouponStartTime |
|
|
tmp["coupon_start_time"] = v.CouponStartTime |
|
|
} |
|
|
} |
|
|