diff --git a/app/common/repositories/user/ExchangeQuotaRepository.php b/app/common/repositories/user/ExchangeQuotaRepository.php index 8e5101b..152697a 100644 --- a/app/common/repositories/user/ExchangeQuotaRepository.php +++ b/app/common/repositories/user/ExchangeQuotaRepository.php @@ -103,6 +103,7 @@ class ExchangeQuotaRepository extends BaseRepository{ 'change_front' => $currentUserChangeFront, 'change_after' => (float)$currentUser->surplus_quota, 'remark' => "转赠给【{$transferMemberName}】", + 'source' => 4, ], // 接收用户变更记录 [ @@ -115,6 +116,7 @@ class ExchangeQuotaRepository extends BaseRepository{ 'change_front' => $transferUserChangeFront, 'change_after' => (float)$transferUser->surplus_quota, 'remark' => "来自【{$currentMemberName}】的转赠", + 'source' => 4, ] ]; ExchangeQuotaRecord::insertAll($insertData);