diff --git a/app/common/repositories/store/platformCommission/LegumesLogRepository.php b/app/common/repositories/store/platformCommission/LegumesLogRepository.php index 7d21a4e..f9720ed 100644 --- a/app/common/repositories/store/platformCommission/LegumesLogRepository.php +++ b/app/common/repositories/store/platformCommission/LegumesLogRepository.php @@ -93,7 +93,7 @@ class LegumesLogRepository extends BaseRepository{ $freeze = array_column($freeze,'total_get_integral','uid'); foreach($list as &$singleInfo){ // 总冻结积分 - $singleInfo['total_freeze_integral'] = $freeze[$singleInfo['uid']]; + $singleInfo['total_freeze_integral'] = $freeze[$singleInfo['uid']] ?? 0; // 可使用积分 $reduce = (float)sprintf("%.2f",$singleInfo['total_freeze_integral'] + $singleInfo['total_use_integral']);// 冻结 + 已使用积分 $singleInfo['surplus_use_integral'] = (float)sprintf("%.2f",$singleInfo['total_get_integral'] - $reduce);