Compare commits

...

2 Commits

Author SHA1 Message Date
cody 7458b18e4e Merge remote-tracking branch 'online/master'
4 months ago
cody ee5bbe72c6 update
4 months ago

@ -436,9 +436,11 @@ class UserController extends BaseController
$query->whereBetween('birthday', [$all['start_birthday'], $all['end_birthday']]); $query->whereBetween('birthday', [$all['start_birthday'], $all['end_birthday']]);
} }
if (isset($all['keyword'])) { if (isset($all['keyword'])) {
$query->where('school', 'like', '%' . $all['keyword'] . '%') $query->where(function ($q) use ($all) {
->orWhere('speciality', 'like', '%' . $all['keyword'] . '%') $q->where('school', 'like', '%' . $all['keyword'] . '%')
->orWhere('introduce', 'like', '%' . $all['keyword'] . '%'); ->orWhere('speciality', 'like', '%' . $all['keyword'] . '%')
->orWhere('introduce', 'like', '%' . $all['keyword'] . '%');
});
} }
if (isset($all['talent_tags'])) { if (isset($all['talent_tags'])) {
$talentTags = explode(',', $all['talent_tags']); $talentTags = explode(',', $all['talent_tags']);

Loading…
Cancel
Save