Commit 58e0dd54 authored by rlgy's avatar rlgy

行情

parent a6387dd8
...@@ -51,7 +51,7 @@ class CoinBTYService extends Coin implements CoinInterface ...@@ -51,7 +51,7 @@ class CoinBTYService extends Coin implements CoinInterface
$key = $this->cache_key_prifx . $this->sid . 'all'; $key = $this->cache_key_prifx . $this->sid . 'all';
$result = Yii::$app->cache->get($key); $result = Yii::$app->cache->get($key);
if ($result === false || YII_ENV_DEV) { if ($result === false || YII_ENV_DEV) {
$url = 'https://zb2api.licai.cn/api/data/Ticker?sort=cname'; $url = 'http://40.83.77.188/api/data/Ticker?sort=cname';
$ch = new Curl(); $ch = new Curl();
$content = $ch->get($url, false); $content = $ch->get($url, false);
if (is_array($content) && isset($content['code']) && $content['code'] == 200) { if (is_array($content) && isset($content['code']) && $content['code'] == 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment