diff --git a/app/common/repositories/store/platformCommission/LegumesLogRepository.php b/app/common/repositories/store/platformCommission/LegumesLogRepository.php index f9720ed..e4b46f1 100644 --- a/app/common/repositories/store/platformCommission/LegumesLogRepository.php +++ b/app/common/repositories/store/platformCommission/LegumesLogRepository.php @@ -115,7 +115,7 @@ class LegumesLogRepository extends BaseRepository{ 'refund_get_legumes' => $this->getModel($params)->sum('refund_get_legumes'),// 退款减少豆豆 'get_integral' => $this->getModel($params)->sum('get_integral'),// 获得积分 'freeze_integral' => $this->getModel($params)->where('status',0)->sum('get_integral'),// 冻结中积分 - 'used_integral' => $this->getModel($params)->where('status',1)->sum('get_integral'),// 可用积分 + 'used_integral' => $this->getHoldLegumesIntegral((int)$params['uid']),// 可用积分 'use_integral' => $this->getModel($params)->sum('use_integral'),// 已使用积分 ];