配置修改
This commit is contained in:
@ -177,12 +177,12 @@ class ShopLogic extends Logic
|
||||
|
||||
// 用户是否关注店铺
|
||||
$shop['shop_follow_status'] = 0;
|
||||
if($userId) { // 用户已登录
|
||||
$shopFollow = ShopFollow::where(['user_id'=>$userId, 'shop_id'=>$shop['id']])->findOrEmpty();
|
||||
if(!$shopFollow->isEmpty()) {
|
||||
$shop['shop_follow_status'] = $shopFollow['status'];
|
||||
}
|
||||
}
|
||||
// if($userId) { // 用户已登录
|
||||
// $shopFollow = ShopFollow::where(['user_id'=>$userId, 'shop_id'=>$shop['id']])->findOrEmpty();
|
||||
// if(!$shopFollow->isEmpty()) {
|
||||
// $shop['shop_follow_status'] = $shopFollow['status'];
|
||||
// }
|
||||
// }
|
||||
$shop['follow_num'] = ShopFollow::where(['shop_id' => $shop['id'],'status' => 1])->count('id');
|
||||
$image = ConfigServer::get('shop_customer_service', 'image', '', $shop['id']);
|
||||
$shop['customer_image'] = $image ? UrlServer::getFileUrl($image) : '';
|
||||
|
||||
Reference in New Issue
Block a user