add clear
This commit is contained in:
@@ -23,11 +23,11 @@ class Tag extends AfficialAccount
|
|||||||
*/
|
*/
|
||||||
public function generate($tagName)
|
public function generate($tagName)
|
||||||
{
|
{
|
||||||
$url['tag[name]'] = $tagName;
|
$params['tag'] = ['name' => $tagName];
|
||||||
|
|
||||||
$config = $this->config->getAccessToken();
|
$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->setErrorField('errcode');
|
||||||
$this->request->setErrorMsgField('errmsg');
|
$this->request->setErrorMsgField('errmsg');
|
||||||
if (!$result->isResultsOK()) {
|
if (!$result->isResultsOK()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user