diff --git a/pdd_union/goods.go b/pdd_union/goods.go index f020aa8..2197555 100644 --- a/pdd_union/goods.go +++ b/pdd_union/goods.go @@ -17,8 +17,8 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [ tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) tmp["goods_title"] = v.GoodsName 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 { 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["goods_title"] = v.GoodsName 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 { tmp["coupon_start_time"] = v.CouponStartTime }