From 79250db6b9cd5d70d679209cc643691160ed5e84 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 7 Sep 2023 17:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/AdminStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/AdminStatistics.php b/app/controller/AdminStatistics.php index fab9cb7..e7c9d3c 100644 --- a/app/controller/AdminStatistics.php +++ b/app/controller/AdminStatistics.php @@ -130,7 +130,7 @@ class AdminStatistics extends BaseController } } - $data['sum_value'] = $sumData['sum_num']; + $data['sum_value'] = $sumData['sum_num'] ?: 0; return $this->renderSuccess('数据返回成功',$data); } catch (ValidateException $validateException) {