|
|
@@ -112,7 +112,8 @@ class Withdraw extends Controller
|
|
|
$count = $query->where($where)->count();
|
|
|
$list = $query->where($where)
|
|
|
->with(['member'])
|
|
|
- ->orderBy('created_at', 'desc')
|
|
|
+ ->orderBy('status')
|
|
|
+ ->orderBy('created_at')
|
|
|
->forpage($page, $limit)->get();
|
|
|
foreach ($list as &$item) {
|
|
|
$item['exchange_rate'] = floatval($item['exchange_rate']);
|
|
|
@@ -180,9 +181,9 @@ class Withdraw extends Controller
|
|
|
public function batch()
|
|
|
{
|
|
|
try {
|
|
|
-
|
|
|
+
|
|
|
WithdrawService::batchReject();
|
|
|
-
|
|
|
+
|
|
|
DB::commit();
|
|
|
} catch (ValidationException $e) {
|
|
|
DB::rollBack();
|