广告
This commit is contained in:
@@ -41,7 +41,10 @@ class AdController extends BaseController
|
||||
{
|
||||
|
||||
if ($scene === 'default') {
|
||||
|
||||
$item['alt'] = isset($item['translation']) ? $item['translation']['alt'] : '';
|
||||
$item['title'] = isset($item['translation']) ? $item['translation']['title'] : '';
|
||||
unset($item['translation']);
|
||||
$item['full_image'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['image']);
|
||||
}
|
||||
|
||||
return $item;
|
||||
|
||||
@@ -41,7 +41,10 @@ class AdController extends BaseController
|
||||
{
|
||||
|
||||
if ($scene === 'default') {
|
||||
|
||||
$item['alt'] = isset($item['translation']) ? $item['translation']['alt'] : '';
|
||||
$item['title'] = isset($item['translation']) ? $item['translation']['title'] : '';
|
||||
unset($item['translation']);
|
||||
$item['full_image'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['image']);
|
||||
}
|
||||
|
||||
return $item;
|
||||
|
||||
Reference in New Issue
Block a user