add clear
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@ class SecCheck extends SmallProgram
|
||||
}
|
||||
$this->request->setUseSwoole(false);
|
||||
$this->request->setHeader(['Content-Type' => 'multipart/form-data']);
|
||||
return $this->request->post($this->_url, ['media' => new \CURLFile($path)]);
|
||||
return $this->request->post($this->_url . $this->config->getAccessToken(), ['media' => new \CURLFile($path)]);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class SecCheck extends SmallProgram
|
||||
}
|
||||
$this->request->setUseSwoole(false);
|
||||
$this->request->setHeader(['Content-Type' => 'application/json']);
|
||||
return $this->request->post($this->_msgUrl, ['content' => $content]);
|
||||
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), ['content' => $content]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -33,7 +33,7 @@ class SecCheck extends SmallProgram
|
||||
}
|
||||
$this->request->setUseSwoole(false);
|
||||
$this->request->setHeader(['Content-Type' => 'multipart/form-data']);
|
||||
return $this->request->post($this->_url, ['media' => new \CURLFile($path)]);
|
||||
return $this->request->post($this->_url . $this->config->getAccessToken(), ['media' => new \CURLFile($path)]);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class SecCheck extends SmallProgram
|
||||
throw new \Exception('暂不支持的文件类型');
|
||||
}
|
||||
$this->request->setHeader(['Content-Type' => 'application/json']);
|
||||
$response = $this->request->post($this->_mediaCheckAsync, [
|
||||
$response = $this->request->post($this->_mediaCheckAsync . $this->config->getAccessToken(), [
|
||||
'media_url' => $url,
|
||||
'media_type' => $type
|
||||
]);
|
||||
@@ -80,7 +80,7 @@ class SecCheck extends SmallProgram
|
||||
return $this->sendError('文件不存在', 404);
|
||||
}
|
||||
$this->request->setHeader(['Content-Type' => 'application/json']);
|
||||
return $this->request->post($this->_msgUrl, ['content' => $content]);
|
||||
return $this->request->post($this->_msgUrl . $this->config->getAccessToken(), ['content' => $content]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user