From eee9f3cea9c7a8accab80dbd08b6fd80159c22d2 Mon Sep 17 00:00:00 2001 From: fengxinyhyl Date: Mon, 3 Jun 2024 14:50:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BA=A2=E7=82=B9=E5=85=91=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E8=87=AA=E5=8A=A8=E5=87=8F=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/user/UserAssetsRepository.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/common/repositories/user/UserAssetsRepository.php b/app/common/repositories/user/UserAssetsRepository.php index a3dd79c..a9afb29 100644 --- a/app/common/repositories/user/UserAssetsRepository.php +++ b/app/common/repositories/user/UserAssetsRepository.php @@ -207,6 +207,13 @@ class UserAssetsRepository extends BaseRepository $share = floor(($shareStatistics->current - $shareStatistics->last_point) / $config['share_get_welfare_limit']); $shareStatistics->last_point = $shareStatistics->last_point + $config['share_get_welfare_limit'] * $share; $shareStatistics->save(); + $logList[] = array( + 'uid' => $item['uid'], + 'asset_type' => UserAssetsLogRepository::ASSET_TYPE_SHARE_POINT, + 'type' => UserAssetsLogRepository::CHANGE_TYPE_SHARE_GET, + 'status' => UserAssetsLogRepository::STATUS_SUCCESS, + 'count' => -$share, + ); $this->update($item['uid'], array('share_point' => $assets['share_point'] - $share)); } }