Commit 5ae56067 authored by luhongguang's avatar luhongguang

Merge branch 'jielong' of https://git.yidian-inc.com:8021/bp/goods into jielong

parents 4fb3eadb 8b30e774
......@@ -21,7 +21,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
'city' => 'require',
'area' => 'require',
'offset' => 'egt:0',
'limit' => 'elt:1000',
'limit' => 'elt:500',
];
protected $message = [
......@@ -35,7 +35,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
"city" => "市不能为空",
"area" => "区不能为空",
"offset" => "偏移量不能小于0",
"limit" => "单次不能大于1000条",
"limit" => "单次不能大于500条",
];
......
......@@ -119,7 +119,7 @@ class TakePlaceService
$where['LIMIT'] = [$offset, $limit];
$relations = MarketingTakePlace::select('*', $where);
$makePlaceIds = array_column($relations,'take_place_id');
$makePlaceIds = array_column((array)$relations,'take_place_id');
$where = ['take_place_id'=>$makePlaceIds,'is_delete'=>TakePlace::STATUS_NORMAL];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment