|
@@ -90,10 +90,8 @@ class FloorRepository
|
|
|
|
|
|
public function floorBind($request)
|
|
public function floorBind($request)
|
|
{
|
|
{
|
|
- Log::debug(json_encode($request));
|
|
|
|
$banner_id = $request['banner_id'];
|
|
$banner_id = $request['banner_id'];
|
|
$floor_array = $this->floor->select('id','group_ids')->where('floor_type',0)->get();
|
|
$floor_array = $this->floor->select('id','group_ids')->where('floor_type',0)->get();
|
|
- Log::debug(json_encode($floor_array));
|
|
|
|
$floor_ids = [];
|
|
$floor_ids = [];
|
|
foreach ($floor_array->toArray() as $value){
|
|
foreach ($floor_array->toArray() as $value){
|
|
if ($banner_id == $value['group_ids']){
|
|
if ($banner_id == $value['group_ids']){
|
|
@@ -101,7 +99,6 @@ class FloorRepository
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (count($floor_ids)>0){
|
|
if (count($floor_ids)>0){
|
|
- Log::debug($floor_ids);
|
|
|
|
$edit_floor = $this->floor->whereIn('id',$floor_ids)->update(['is_open'=>0]);
|
|
$edit_floor = $this->floor->whereIn('id',$floor_ids)->update(['is_open'=>0]);
|
|
if (!$edit_floor){
|
|
if (!$edit_floor){
|
|
throw new HttpException(500, '该楼层关闭失败');
|
|
throw new HttpException(500, '该楼层关闭失败');
|