nemetyan kod

This commit is contained in:
merdan 2023-03-24 16:40:10 +05:00
parent fb9a19eb90
commit 6d253b0137
1 changed files with 4 additions and 4 deletions

View File

@ -79,10 +79,6 @@ func ParseLinkTY(link string,w http.ResponseWriter) {
product, err := linkParser.ParseLink()
jsProd,_:= json.MarshalIndent(product,""," ")
fmt.Println(string(jsProd))
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
json.NewEncoder(w).Encode(map[string]string{
@ -94,6 +90,10 @@ func ParseLinkTY(link string,w http.ResponseWriter) {
jsonProduct, err := linkParser.GetProductDetailWithOptions(product.ID, product.ProductGroupID)
jsProd,_:= json.MarshalIndent(jsonProduct,""," ")
fmt.Println(string(jsProd))
if err != nil {
helper.Error(err)
return