From 767be1851e5f4dbf1be97ce86b8c8c1861b5269e Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 29 Dec 2023 16:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E8=B1=86=E8=B1=86?= =?UTF-8?q?=E5=88=86=E9=85=8D=E8=AE=B0=E5=BD=95=E6=B7=BB=E5=8A=A0=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/store/marketing/PlatformCommission.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controller/admin/store/marketing/PlatformCommission.php b/app/controller/admin/store/marketing/PlatformCommission.php index a367b41..1b8f2bc 100644 --- a/app/controller/admin/store/marketing/PlatformCommission.php +++ b/app/controller/admin/store/marketing/PlatformCommission.php @@ -134,6 +134,8 @@ class PlatformCommission extends BaseController{ */ public function legumesTitle(){ $params = $this->request->params(['uid','legumes_id']); + $set = app()->make(RecordRepository::class)->getBaseConfig(); + $legumesPrice = $set['legumes_price'] <= 0 ? 0.5 : $set['legumes_price']; $legumesModel = app()->make(LegumesRepository::class)->getSearch([]); $legumesLogModel = (new LegumesLog()) ->when((int)$params['uid'] > 0,function($query) use ($params){ @@ -142,7 +144,8 @@ class PlatformCommission extends BaseController{ ->whereIn('status', [0,1]); return app('json')->success([ - ['className' => 'el-icon-coin','count' => $legumesModel->sum('total_platform_commission_money'),'name' => '基金池总数'], + // ['className' => 'el-icon-coin','count' => $legumesModel->sum('total_platform_commission_money'),'name' => '基金池总数'], + ['className' => 'el-icon-coin','count' => $legumesPrice,'name' => '当前豆豆价格'], ['className' => 'el-icon-coin','count' => $legumesLogModel->sum('get_legumes'),'name' => '已产生豆豆'], ['className' => 'el-icon-coin','count' => $legumesLogModel->sum('order_money'),'name' => '订单总金额(积分上限)'], ['className' => 'el-icon-coin','count' => $legumesLogModel->sum('get_integral'),'name' => '已产生积分'],