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()) {