|
@@ -58,10 +58,17 @@ class Wallet extends Controller
|
|
|
$data['rmb_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();
|
|
|
|
|
- if (MenuService::checkMenu(request()->user->id, "admin/withdraw/rmb")) {
|
|
|
|
|
|
|
+ if (MenuService::checkMenu(request()->user->id, "withdraw/topUp")) {
|
|
|
|
|
+ $data['recharge_task'] = Recharge::where('type', 2)
|
|
|
|
|
+ ->where('status', 0)->count();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (MenuService::checkMenu(request()->user->id, "listUSDT")) {
|
|
|
|
|
+ $data['withdraw_task'] = Withdraw::where('status', 0)->count();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (MenuService::checkMenu(request()->user->id, "listRMB")) {
|
|
|
$data['rmb_withdraw_task'] = PaymentOrder::where('type', 2)
|
|
$data['rmb_withdraw_task'] = PaymentOrder::where('type', 2)
|
|
|
->where('status', 0)->count();
|
|
->where('status', 0)->count();
|
|
|
|
|
|