|
|
@@ -26,6 +26,12 @@ class ActivityRewardService extends BaseService
|
|
|
public static function getWhere(array $search = []): array
|
|
|
{
|
|
|
$where = [];
|
|
|
+
|
|
|
+ if (isset($search['id']) && !empty($search['id'])) {
|
|
|
+ $where[] = ['id', '=', $search['id']];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (isset($search['title']) && !empty($search['title'])) {
|
|
|
$where[] = ['title', 'like', "%{$search['title']}%"];
|
|
|
}
|