|
@@ -19,12 +19,15 @@ class ActivityReward extends BaseController
|
|
|
];
|
|
];
|
|
|
$where = ActivityRewardService::getWhere($params);
|
|
$where = ActivityRewardService::getWhere($params);
|
|
|
$query = ActivityRewardModel::where($where);
|
|
$query = ActivityRewardModel::where($where);
|
|
|
- $list = $query->orderByDesc('id')->get()->toArray();
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ $sql = $query->toSql();
|
|
|
|
|
+// $list = $query->orderByDesc('id')->get()->toArray();
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error($e->validator->errors()->first());
|
|
return $this->error($e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
return $this->error($e->getMessage());
|
|
return $this->error($e->getMessage());
|
|
|
}
|
|
}
|
|
|
- return $this->success($list);
|
|
|
|
|
|
|
+ return $this->success($sql);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|