This commit is contained in:
xl
2023-11-14 12:39:28 +08:00
parent c3326a9b5a
commit f92fdab692
15 changed files with 245 additions and 272 deletions
+3 -3
View File
@@ -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]);
}
}