|
|
@@ -25,11 +25,9 @@ class ActivityReward extends Controller
|
|
|
$limit = request()->input('limit', 10);
|
|
|
$where = ActivityRewardService::getWhere($params);
|
|
|
$query = ActivityRewardModel::where($where);
|
|
|
-
|
|
|
$count = $query->count();
|
|
|
$list = $query->orderByDesc('id')
|
|
|
->forPage($page, $limit)->get()->toArray();
|
|
|
-
|
|
|
$result = ['total' => $count, 'data' => $list];
|
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|