nemetyan kod

This commit is contained in:
merdan 2023-03-24 10:57:10 +05:00
parent 6ff32267c7
commit 55afd88e31
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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]