From 760ccec8a052f17c2104559acecad047f167955c Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 16 Mar 2020 18:52:25 +0800 Subject: [PATCH] add clear --- wchat/officialaccount/Tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wchat/officialaccount/Tag.php b/wchat/officialaccount/Tag.php index 0b779c2..99e5130 100644 --- a/wchat/officialaccount/Tag.php +++ b/wchat/officialaccount/Tag.php @@ -23,11 +23,11 @@ class Tag extends AfficialAccount */ public function generate($tagName) { - $url['tag[name]'] = $tagName; + $params['tag'] = ['name' => $tagName]; $config = $this->config->getAccessToken(); - $result = $this->request->post($this->generate_url . $config, $url); + $result = $this->request->post($this->generate_url . $config, $params); $this->request->setErrorField('errcode'); $this->request->setErrorMsgField('errmsg'); if (!$result->isResultsOK()) {