add clear

This commit is contained in:
as2252258@163.com
2020-03-16 18:52:25 +08:00
parent 50d2cbcd24
commit 760ccec8a0
+2 -2
View File
@@ -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()) {