add clear

This commit is contained in:
as2252258@163.com
2020-03-16 18:55:02 +08:00
parent 760ccec8a0
commit d7189c3db8
+3 -2
View File
@@ -23,11 +23,12 @@ class Tag extends AfficialAccount
*/
public function generate($tagName)
{
$params['tag'] = ['name' => $tagName];
$params['tag[name]'] = $tagName;
$config = $this->config->getAccessToken();
$result = $this->request->post($this->generate_url . $config, $params);
$this->request->setData(json_encode($params));
$result = $this->request->post($this->generate_url . $config);
$this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg');
if (!$result->isResultsOK()) {