nemetyan kod
This commit is contained in:
parent
fb9a19eb90
commit
6d253b0137
|
|
@ -79,10 +79,6 @@ func ParseLinkTY(link string,w http.ResponseWriter) {
|
||||||
|
|
||||||
product, err := linkParser.ParseLink()
|
product, err := linkParser.ParseLink()
|
||||||
|
|
||||||
jsProd,_:= json.MarshalIndent(product,""," ")
|
|
||||||
|
|
||||||
fmt.Println(string(jsProd))
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
json.NewEncoder(w).Encode(map[string]string{
|
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)
|
jsonProduct, err := linkParser.GetProductDetailWithOptions(product.ID, product.ProductGroupID)
|
||||||
|
|
||||||
|
jsProd,_:= json.MarshalIndent(jsonProduct,""," ")
|
||||||
|
|
||||||
|
fmt.Println(string(jsProd))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
helper.Error(err)
|
helper.Error(err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue