|
|
@@ -53,25 +53,10 @@ class Wallet extends Controller
|
|
|
*/
|
|
|
function getPendingTasks()
|
|
|
{
|
|
|
- $data['recharge_task'] = 0;
|
|
|
- $data['withdraw_task'] = 0;
|
|
|
- $data['rmb_withdraw_task'] = 0;
|
|
|
+ $data['recharge_task'] = Recharge::where('type', 2)->where('status', 0)->count();
|
|
|
+ $data['withdraw_task'] = Withdraw::where('status', 0)->count();
|
|
|
+ $data['rmb_withdraw_task'] = PaymentOrder::where('type', 2)->where('status', 0)->count();
|
|
|
|
|
|
-
|
|
|
- if (MenuService::checkMenu(request()->user->id, "withdraw/withdraw/topUp")) {
|
|
|
- $data['recharge_task'] = Recharge::where('type', 2)
|
|
|
- ->where('status', 0)->count();
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- if (MenuService::checkMenu(request()->user->id, "withdraw/listUSDT")) {
|
|
|
- $data['withdraw_task'] = Withdraw::where('status', 0)->count();
|
|
|
- }
|
|
|
-
|
|
|
- if (MenuService::checkMenu(request()->user->id, "withdraw/listRMB")) {
|
|
|
- $data['rmb_withdraw_task'] = PaymentOrder::where('type', 2)
|
|
|
- ->where('status', 0)->count();
|
|
|
- }
|
|
|
return $this->success($data);
|
|
|
}
|
|
|
|