Commit db6d7b00 authored by ZhuChunYang's avatar ZhuChunYang

添加平台币种图片

parent f60145ce
......@@ -11,7 +11,7 @@ namespace common\business;
use common\models\psources\Coin;
use common\service\coin\CoinFactory;
use common\service\exchange\ExchangeFactory;
use Yii;
/**
* Class ExchangeBusiness
* 各大交易所交易所api逻辑层
......@@ -181,6 +181,9 @@ class ExchangeBusiness
$rows = $rows['data'];
foreach ($rows as $key => $row) {
$rows[$key]['sid'] = ucfirst($rows[$key]['sid']);
$platform = strtoupper($rows[$key]['platform']);
$platform_icon = Yii::$app->redis_app->hget('platform_image_info',$platform);
$rows[$key]['platform_icon'] = $platform_icon ?? '';
}
return ['total' => $total, 'data' => $rows];
}
......
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