瀏覽代碼

fix:material url (#299)

Amor 6 年之前
父節點
當前提交
c956f416a5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      officialaccount/material/material.go

+ 2 - 2
officialaccount/material/material.go

@@ -11,11 +11,11 @@ import (
 
 const (
 	addNewsURL          = "https://api.weixin.qq.com/cgi-bin/material/add_news"
-	updateNewsURL       = "https://api.weixin.qq.com/cgi-bin/material/update_news?access_token=%s"
+	updateNewsURL       = "https://api.weixin.qq.com/cgi-bin/material/update_news"
 	addMaterialURL      = "https://api.weixin.qq.com/cgi-bin/material/add_material"
 	delMaterialURL      = "https://api.weixin.qq.com/cgi-bin/material/del_material"
 	getMaterialURL      = "https://api.weixin.qq.com/cgi-bin/material/get_material"
-	getMaterialCountURL = "https://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=%s"
+	getMaterialCountURL = "https://api.weixin.qq.com/cgi-bin/material/get_materialcount"
 	batchGetMaterialURL = "https://api.weixin.qq.com/cgi-bin/material/batchget_material"
 )