From faa314d14af1e736f2a8ff0126fccc57f4aad854 Mon Sep 17 00:00:00 2001
From: liu <1873441552@qq.com>
Date: Tue, 2 Jul 2024 14:42:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=97=E9=93=BA=E5=95=86?=
 =?UTF-8?q?=E5=93=81=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/store/logic/WorkbenchLogic.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/store/logic/WorkbenchLogic.php b/app/store/logic/WorkbenchLogic.php
index 610582805..fdc3a7003 100644
--- a/app/store/logic/WorkbenchLogic.php
+++ b/app/store/logic/WorkbenchLogic.php
@@ -904,7 +904,9 @@ class WorkbenchLogic extends BaseLogic
                 'SUM(collect_num) as collect',
                 'ROUND((COUNT(distinct(pay_uid))-1)/COUNT(distinct(uid)),2) as changes',
                 'COUNT(distinct(pay_uid))-1 as repeats'
-            ])->group('product_id')->order('pay', ' desc')->limit(20)->select()->toArray();
+            ])->group('product_id')->order('pay', 'desc')
+            ->limit(20)
+            ->select()->toArray();
         foreach ($list as $key => &$item) {
             $find = StoreProduct::where('id', $item['product_id'])->field('store_name,image')->find();
             $item['store_name'] = $find['store_name'];