Commit aacd9d0e authored by shajiaiming's avatar shajiaiming

Merge branch 'master' into feature/issue_coin

parents 2bc2ae14 6dff60f7
...@@ -144,7 +144,7 @@ class ApplicationController extends BaseController ...@@ -144,7 +144,7 @@ class ApplicationController extends BaseController
$coin_items = CoinImage::getItemsByIds($coin_ids); $coin_items = CoinImage::getItemsByIds($coin_ids);
} }
$app_cate = CoinAppCate::getAppCate($category_id, $id); $app_cate = CoinAppCate::getAppCate($category_id, $id);
if ($applicate['icon']) { if ($applicate['icon'] && isset($coin_items[$applicate['icon']])) {
$icon_info = $coin_items[$applicate['icon']]; $icon_info = $coin_items[$applicate['icon']];
$applicate['icon_url'] = $icon_info['base_url'] . $icon_info['file_url']; $applicate['icon_url'] = $icon_info['base_url'] . $icon_info['file_url'];
} else { } else {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
width: 100px; width: 100px;
} }
</style> </style>
<h4>所属应用---<?= $applicate->name ?></h4> <h4>所属应用---<?= $applicate->name["zh-CN"] ?></h4>
<div class="layui-row" style="padding: 5px;"> <div class="layui-row" style="padding: 5px;">
<div class="layui-tab layui-tab-card"> <div class="layui-tab layui-tab-card">
<ul class="layui-tab-title"> <ul class="layui-tab-title">
......
...@@ -117,7 +117,7 @@ class ApplicationBusiness ...@@ -117,7 +117,7 @@ class ApplicationBusiness
$cate_app_item = []; $cate_app_item = [];
foreach($data as &$value){ foreach($data as &$value){
if($value['icon']){ if($value['icon']){
$value['icon'] = $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url']; $value['icon'] = isset($icon_Infos[$value['icon']]) ? $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url'] : '';
}else{ }else{
$value['icon'] = ''; $value['icon'] = '';
} }
......
...@@ -38,14 +38,14 @@ class ExchangeBusiness ...@@ -38,14 +38,14 @@ class ExchangeBusiness
9 => 'Go', 9 => 'Go',
10 => 'Zhaobi', 10 => 'Zhaobi',
11 => 'Gdpro', 11 => 'Gdpro',
12 => 'Boc', 12 => 'Ex',
13 => 'Ex', 13 => 'Zt',
14 => 'Zt', 14 => 'Tsc',
15 => 'Tsc', 15 => 'Binance',
16 => 'Binance', 16 => 'Ceohk',
17 => 'Ceohk', 17 => 'Biki',
18 => 'Biki', 18 => 'Bilaxy',
19 => 'Bilaxy' 19 => 'Boc'
]; ];
/** /**
......
...@@ -100,7 +100,7 @@ class CoinApplication extends BaseActiveRecord ...@@ -100,7 +100,7 @@ class CoinApplication extends BaseActiveRecord
$recommendItems = CoinApplicateRecommend::getRecommendItemsByType(2); $recommendItems = CoinApplicateRecommend::getRecommendItemsByType(2);
foreach($data as $key => &$value){ foreach($data as $key => &$value){
if($value['icon']){ if($value['icon']){
$value['icon_url'] = $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url']; $value['icon_url'] = isset($icon_Infos[$value['icon']]) ? $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url'] : '';
}else{ }else{
$value['icon_url'] = ''; $value['icon_url'] = '';
} }
......
...@@ -64,7 +64,7 @@ class Boc extends Exchange implements ExchangeInterface ...@@ -64,7 +64,7 @@ class Boc extends Exchange implements ExchangeInterface
$response = iconv('UTF-8', 'GBK//TRANSLIT',$response); $response = iconv('UTF-8', 'GBK//TRANSLIT',$response);
$html = HtmlDomParser::str_get_html($response); $html = HtmlDomParser::str_get_html($response);
$div = ($html->find('div.BOC_main'))[0]; $div = ($html->find('div.BOC_main'));
foreach ($div->find('td') as $key => $e){ foreach ($div->find('td') as $key => $e){
if($key == 5){ if($key == 5){
$key = $this->quotation_prefix . 'CNY_JPY'; $key = $this->quotation_prefix . 'CNY_JPY';
......
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