Commit 193b675f authored by shajiaiming's avatar shajiaiming

修复已知问题 2

parent 309df1ea
...@@ -129,7 +129,7 @@ class ApplicationController extends BaseController ...@@ -129,7 +129,7 @@ class ApplicationController extends BaseController
$icon_Infos = CoinImage::getItemsByIds($icon_Items); $icon_Infos = CoinImage::getItemsByIds($icon_Items);
foreach($data as $key => &$value){ foreach($data as $key => &$value){
if($value['icon']){ if($value['icon']){
$value['icon'] = $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url']; $value['icon'] = Yii::$app->params['service']['OssService']['url'].$icon_Infos[$value['icon']]['file_url'];
}else{ }else{
$value['icon'] = ""; $value['icon'] = "";
} }
...@@ -157,7 +157,7 @@ class ApplicationController extends BaseController ...@@ -157,7 +157,7 @@ class ApplicationController extends BaseController
$name = json_decode($value['name'], true); $name = json_decode($value['name'], true);
$value['name'] = $name[$this->lang]; $value['name'] = $name[$this->lang];
if($value['icon']){ if($value['icon']){
$value['icon'] = $icon_Infos[$value['icon']]['base_url'].$icon_Infos[$value['icon']]['file_url']; $value['icon'] = Yii::$app->params['service']['OssService']['url'].$icon_Infos[$value['icon']]['file_url'];
}else{ }else{
$value['icon'] = ''; $value['icon'] = '';
} }
......
...@@ -46,7 +46,7 @@ class ApplicationBusiness ...@@ -46,7 +46,7 @@ class ApplicationBusiness
} }
} }
if ($value['icon']) { if ($value['icon']) {
$value['icon'] = $icon_Infos[$value['icon']]['base_url'] . $icon_Infos[$value['icon']]['file_url']; $value['icon'] = Yii::$app->params['service']['OssService']['url'] . $icon_Infos[$value['icon']]['file_url'];
} else { } else {
$value['icon'] = ''; $value['icon'] = '';
} }
...@@ -206,7 +206,7 @@ class ApplicationBusiness ...@@ -206,7 +206,7 @@ class ApplicationBusiness
$cate_app_item['id'] = $value['id']; $cate_app_item['id'] = $value['id'];
$cate_app_item['name'] = $value['name']; $cate_app_item['name'] = $value['name'];
if ($value['icon']) { if ($value['icon']) {
$cate_app_item['icon_url'] = $icon_Infos[$value['icon']]['base_url'] . $icon_Infos[$value['icon']]['file_url']; $cate_app_item['icon_url'] = Yii::$app->params['service']['OssService']['url'] . $icon_Infos[$value['icon']]['file_url'];
} else { } else {
$cate_app_item['icon_url'] = ''; $cate_app_item['icon_url'] = '';
} }
......
...@@ -55,7 +55,7 @@ class CoinApplication extends BaseActiveRecord ...@@ -55,7 +55,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'] = Yii::$app->params['service']['OssService']['url'].$icon_Infos[$value['icon']]['file_url'];
}else{ }else{
$value['icon_url'] = ''; $value['icon_url'] = '';
} }
......
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