Explorar o código

fix:material url (#299)

Amor %!s(int64=6) %!d(string=hai) anos
pai
achega
c956f416a5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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"
 )