Commit c80630c7 authored by luhongguang's avatar luhongguang

update: tag_ids 参数处理

parent f5e4ee3c
......@@ -36,6 +36,11 @@ class TakePlaceService
if ($lifeAccountId) {
$where['life_account_id'] = $lifeAccountId;
}
//处理 tag_ids = ['0'] 的情况
if (count($tagIds) == 1 && $tagIds[0] == 0) {
$tagIds = 0;
}
if ($tagIds || $tagIds == 0) {
$where['tag_id'] = $tagIds;
}
......
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