1
0
mirror of https://gitee.com/zoujingli/WeChatDeveloper.git synced 2025-04-06 03:58:03 +08:00

修复上传草稿库bug

This commit is contained in:
陶欣 2022-02-17 19:13:35 +08:00 committed by GitHub
parent ee2f830452
commit 5400257395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,7 @@ class Draft extends BasicWeChat
public function add($articles)
{
$url = "https://api.weixin.qq.com/cgi-bin/draft/add?access_token=ACCESS_TOKEN";
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, ['articles' => $articles]);
}