From b5c164a2b7323392066e603ca00604d374814c57 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 29 Jan 2024 12:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=B1=86=E8=B1=86?= =?UTF-8?q?=E7=A7=AF=E5=88=86=20-=20=E6=8C=81=E6=9C=89=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E4=B8=AD=20-=20=E5=A6=82=E6=9E=9C=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E5=86=BB=E7=BB=93=E4=B8=AD=E7=9A=84=E7=A7=AF=E5=88=86=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E4=BC=9A=E8=BF=9B=E8=A1=8C=E9=94=99=E8=AF=AF=E6=8A=9B?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/platformCommission/LegumesLogRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);