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