配置修改

This commit is contained in:
2026-04-17 21:52:09 +08:00
parent 8ebb7ce337
commit e0b45888ed

View File

@ -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);