|
@@ -225,7 +225,7 @@ class LandingPageLinkService
|
|
->where('report_user_charge_records.type', $params['type']);
|
|
->where('report_user_charge_records.type', $params['type']);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- if (isset($params['status'])) {
|
|
|
|
|
|
+ if (isset($params['status']) && is_numeric($params['status'])) {
|
|
$sql->whereExists(function ($query) use ($params) {
|
|
$sql->whereExists(function ($query) use ($params) {
|
|
$query->select(DB::raw(1))
|
|
$query->select(DB::raw(1))
|
|
->from('report_user_charge_records')
|
|
->from('report_user_charge_records')
|