From e04e164162f1fe7996445df91dcdff68ff2f0077 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 3 Oct 2022 12:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/User/BalanceController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/User/BalanceController.php b/app/Http/Controllers/User/BalanceController.php index 094e1d9..9f33b46 100644 --- a/app/Http/Controllers/User/BalanceController.php +++ b/app/Http/Controllers/User/BalanceController.php @@ -201,17 +201,17 @@ public function transactions() public function drops() { - $month = now()->month; + // $month = now()->month; $user_id = auth()->id(); - $cache_key = 'user_' . $user_id . '_month_' . $month . '_drops'; + // $cache_key = 'user_' . $user_id . '_month_' . $month . '_drops'; $transactions = new Transaction(); $resp = [ 'drops' => $transactions->getDrops($user_id), - 'monthly_usages' => (double) Cache::get($cache_key, 0), + // 'monthly_usages' => (double) Cache::get($cache_key, 0), 'rate' => config('drops.rate'), 'decimal' => config('drops.decimal'), ];