From 46821425a844f6d95c5661aa33670f4629314917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Mon, 12 Jan 2026 20:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9AGive=5FGift=20?= =?UTF-8?q?=E8=A1=A8=E6=9F=A5=E8=AF=A2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/adminapi/controller/Statistical.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/adminapi/controller/Statistical.php b/application/adminapi/controller/Statistical.php index ce1ac79c..35356d3d 100644 --- a/application/adminapi/controller/Statistical.php +++ b/application/adminapi/controller/Statistical.php @@ -208,7 +208,7 @@ class Statistical extends adminApi ->group('user_id') ->count(); $lists = db::name('user_coin_log') - ->field('log_id,createtime,user_id,sum(change_value) as change_value') + ->field('id,createtime,user_id,sum(coin) as change_value') ->where($where) ->group('user_id') ->order('change_value desc') @@ -226,7 +226,7 @@ class Statistical extends adminApi 'count' => $count, 'lists' => $lists, 'total' =>[ - 'total_price' => db::name('vs_user_money_log')->where($where)->sum('change_value') + 'total_price' => db::name('user_coin_log')->where($where)->sum('coin') ] ]; return V(1,"成功", $return_data);