Ver Fonte

no message

xingzai há 2 anos atrás
pai
commit
3ceb3fee97
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      services/chart.go

+ 1 - 1
services/chart.go

@@ -264,7 +264,7 @@ func AddCollectionChart(mobile string, chartId int) (err error) {
 	url := "https://vmp.hzinsights.com/v2api/charts/favorites"
 	method := "POST"
 	payload := strings.NewReader(`{
-    "chart_id":5120
+    "chart_id":` + strconv.Itoa(chartId) + `
 }`)
 	client := &nhttp.Client{}
 	req, err := nhttp.NewRequest(method, url, payload)