mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
Compare commits
1 Commits
532dfbf4b8
...
43134f9fe8
Author | SHA1 | Date | |
---|---|---|---|
|
43134f9fe8 |
@ -36,9 +36,9 @@ class Helper
|
||||
|
||||
public static function exchange($from, $to)
|
||||
{
|
||||
$result = file_get_contents('https://api.exchangerate.host/latest?symbols=' . $to . '&base=' . $from);
|
||||
$result = file_get_contents("https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/" . $from . "/" . $to . ".json");
|
||||
$result = json_decode($result, true);
|
||||
return $result['rates'][$to];
|
||||
return $result[$to];
|
||||
}
|
||||
|
||||
public static function randomChar($len, $special = false)
|
||||
|
Loading…
Reference in New Issue
Block a user