移除 显示

This commit is contained in:
iVampireSP.com 2022-10-03 12:11:06 +08:00
parent a030086778
commit e04e164162
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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'),
];