浏览代码

no message

xingzai 2 年之前
父节点
当前提交
3ceb3fee97
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"
 	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)