From 2acf1a6706dc2044113b725bbade5a14e8f2bd38 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 13 Jan 2026 11:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=86=99=E6=96=B9=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/BaseModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/BaseModel.php b/app/BaseModel.php index 542556d..d47b744 100644 --- a/app/BaseModel.php +++ b/app/BaseModel.php @@ -92,7 +92,7 @@ class BaseModel extends Model } // 获取某一项数据的统计 - public static function getTotal($map,$where=[],$field,$group){ + public static function getTotal($map,$where=[],$field ='',$group=''){ return self::field($field) ->where($map) ->where($where)