eee
This commit is contained in:
+3
-3
@@ -35,7 +35,7 @@ class SecCheck extends SmallProgram
|
||||
'form-data[filename]' => $path,
|
||||
'form-data[content-type]' => $real_path->getMimeType()
|
||||
];
|
||||
return $this->upload($path, $data);
|
||||
return $this->upload('api.q.qq.com', $this->_url, $data);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,9 @@ class SecCheck extends SmallProgram
|
||||
if (empty($content)) {
|
||||
return $this->sendError('文件不存在', 404);
|
||||
}
|
||||
$url = '/' . ltrim($this->_url, '/') . $this->payConfig->getAccessToken();
|
||||
$url = '/' . ltrim($this->_msgUrl, '/') . $this->payConfig->getAccessToken();
|
||||
|
||||
return $this->post($url, ['appid' => $this->payConfig->appId, 'content' => $content]);
|
||||
return $this->post('api.q.qq.com', $url, ['appid' => $this->payConfig->appId, 'content' => $content]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user