配置修改
This commit is contained in:
@ -148,7 +148,12 @@ class ShopLogic extends Logic
|
|||||||
$shop = Shop::field($field)
|
$shop = Shop::field($field)
|
||||||
->where($c)
|
->where($c)
|
||||||
->append([ 'type_desc', 'is_expire' ])
|
->append([ 'type_desc', 'is_expire' ])
|
||||||
->find();
|
->findOrEmpty();
|
||||||
|
if($shop->isEmpty()) {
|
||||||
|
return [];
|
||||||
|
}else{
|
||||||
|
$shop = $shop->toArray();
|
||||||
|
}
|
||||||
//
|
//
|
||||||
$shop['logo'] = UrlServer::getFileUrl($shop['logo'] ? : ShopEnum::DEFAULT_LOGO);
|
$shop['logo'] = UrlServer::getFileUrl($shop['logo'] ? : ShopEnum::DEFAULT_LOGO);
|
||||||
$shop['background'] = UrlServer::getFileUrl($shop['background'] ? : ShopEnum::DEFAULT_BG);
|
$shop['background'] = UrlServer::getFileUrl($shop['background'] ? : ShopEnum::DEFAULT_BG);
|
||||||
|
|||||||
Reference in New Issue
Block a user