From 9c04f75b853d4cb15dffa8dd1a26fd2b7f56e610 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Fri, 2 Apr 2021 01:45:11 +0900 Subject: [PATCH] update: exchange api --- app/Utils/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Helper.php b/app/Utils/Helper.php index d74e0ee6..44341dcf 100644 --- a/app/Utils/Helper.php +++ b/app/Utils/Helper.php @@ -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]; }