1
This commit is contained in:
@@ -4,6 +4,7 @@ namespace app\apis\controller;
|
||||
|
||||
use app\apis\model\BrandBannerModel;
|
||||
use app\apis\model\BrandTraitModel;
|
||||
use app\apis\model\BrandTranslationModel;
|
||||
use support\Request;
|
||||
use support\Response;
|
||||
use app\apis\model\BrandModel;
|
||||
@@ -58,6 +59,10 @@ class BrandController extends BaseController
|
||||
'created_at' => date('Y-m-d H:i:s', $item['created_at']),
|
||||
'updated_at' => date('Y-m-d H:i:s', $item['updated_at']),
|
||||
];
|
||||
if($scene === 'letter'){
|
||||
$brand = BrandTranslationModel::where(['brand_id' => $item['id'],'locale' => 'en'])->first();
|
||||
$result['name'] = isset($brand['name'])?$brand['name']:$result['name'];
|
||||
}
|
||||
if ($item['toppic']) {
|
||||
$result['toppic_full'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['toppic']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user