update: exchange api

This commit is contained in:
tokumeikoi 2021-04-02 01:45:11 +09:00
parent c7d7dfda28
commit 9c04f75b85

View File

@ -25,7 +25,7 @@ class Helper
public static function exchange($from, $to)
{
$result = file_get_contents('https://api.exchangeratesapi.io/latest?symbols=' . $to . '&base=' . $from);
$result = file_get_contents('https://api.exchangerate.host/latest?symbols=' . $to . '&base=' . $from);
$result = json_decode($result, true);
return $result['rates'][$to];
}