nemetyan kod
This commit is contained in:
parent
6ff32267c7
commit
55afd88e31
|
|
@ -79,9 +79,9 @@ func ParseLinkTY(link string,w http.ResponseWriter) {
|
|||
|
||||
product, err := linkParser.ParseLink()
|
||||
|
||||
jsProd,_:= json.MarshalIndent(product,""," ")
|
||||
|
||||
fmt.Println(string(jsProd))
|
||||
//jsProd,_:= json.MarshalIndent(product,""," ")
|
||||
//
|
||||
//fmt.Println(string(jsProd))
|
||||
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
|
|
|||
|
|
@ -296,9 +296,9 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int
|
|||
for i := 0; i < len(model.AlternativeVariants); i++ {
|
||||
alternativeVariant := model.AlternativeVariants[i]
|
||||
|
||||
stockType := reflect.TypeOf(alternativeVariant.Stock)
|
||||
//stockType := reflect.TypeOf(alternativeVariant.Stock)
|
||||
|
||||
if stockType == nil && len(variants) > 0 {
|
||||
if len(variants) > 0 {
|
||||
|
||||
// get the first variant for attribute info
|
||||
fv := variants[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue