set verify false

This commit is contained in:
Edward Yang 2022-09-30 17:37:56 +08:00
parent 75aca94d09
commit 8e038cdac4
1 changed files with 2 additions and 2 deletions

View File

@ -22,13 +22,13 @@ class MarketingService
if (!empty($filters)) {
$url .= '?' . http_build_query($filters);
}
return Http::get($url)->json();
return Http::withOptions(['verify' => false])->get($url)->json();
}
public static function getPlugin($code)
{
$url = config('beike.api_url') . '/api/plugins/' . $code;
$plugin = Http::get($url)->json();
$plugin = Http::withOptions(['verify' => false])->get($url)->json();
if (empty($plugin)) {
throw new NotFoundHttpException('该插件不存在或已下架');
}