|
@@ -58,12 +58,7 @@ class Withdraw extends Controller
|
|
|
->orderByRaw('CASE WHEN status = 0 THEN 0 ELSE 1 END')
|
|
->orderByRaw('CASE WHEN status = 0 THEN 0 ELSE 1 END')
|
|
|
->orderByDesc('created_at')
|
|
->orderByDesc('created_at')
|
|
|
->forpage($page, $limit)->get();
|
|
->forpage($page, $limit)->get();
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- $result = [
|
|
|
|
|
- 'total' => $count,
|
|
|
|
|
- 'data' => $list
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ $result = ['total' => $count, 'data' => $list];
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
@@ -72,7 +67,6 @@ class Withdraw extends Controller
|
|
|
return $this->success($result);
|
|
return $this->success($result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
public function setNote()
|
|
public function setNote()
|
|
|
{
|
|
{
|
|
|
try {
|
|
try {
|