|
@@ -14,7 +14,7 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [ |
|
|
data := make([]map[string]string, 0) |
|
|
data := make([]map[string]string, 0) |
|
|
for _, v := range res.GoodsBasicDetailResponse.List { |
|
|
for _, v := range res.GoodsBasicDetailResponse.List { |
|
|
tmp := make(map[string]string) |
|
|
tmp := make(map[string]string) |
|
|
tmp["gid"] = v.GoodsSign |
|
|
|
|
|
|
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["coupon_start_time"] = "0" |
|
|
tmp["coupon_start_time"] = "0" |
|
@@ -56,7 +56,7 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma |
|
|
data := make([]map[string]string, 0) |
|
|
data := make([]map[string]string, 0) |
|
|
for _, v := range res.GoodsSearchResponse.GoodsList { |
|
|
for _, v := range res.GoodsSearchResponse.GoodsList { |
|
|
tmp := make(map[string]string) |
|
|
tmp := make(map[string]string) |
|
|
tmp["gid"] = v.GoodsSign |
|
|
|
|
|
|
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["coupon_start_time"] = "0" |
|
|
tmp["coupon_start_time"] = "0" |
|
@@ -97,7 +97,7 @@ func GetGoodsDetail(keyArr map[string]string, param map[string]interface{}) map[ |
|
|
data := make(map[string]interface{}) |
|
|
data := make(map[string]interface{}) |
|
|
for _, v := range res.GoodsDetailResponse.GoodsDetails { |
|
|
for _, v := range res.GoodsDetailResponse.GoodsDetails { |
|
|
tmp := make(map[string]interface{}) |
|
|
tmp := make(map[string]interface{}) |
|
|
tmp["gid"] = v.GoodsSign |
|
|
|
|
|
|
|
|
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId) |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["goods_title"] = v.GoodsName |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) |
|
|
tmp["coupon_start_time"] = "0" |
|
|
tmp["coupon_start_time"] = "0" |
|
|