From 6e0b38b0ea6669d532e9d2279a81ca3963e0f3ad Mon Sep 17 00:00:00 2001
From: liyaozhi <lzhflash@163.com>
Date: Thu, 13 Nov 2025 00:14:05 +0800
Subject: [PATCH] 1、小程序端列出所有报名人员名单(含姓名); 2、优化活动促销商品; 3、优化小程序端活动详情页; 4、优化后台连盟活动修改页面,并展示促销商品; 5、参与活动人员积分设置改到职务里添加。

---
 admin/app/common/model/plus/business/Business.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/admin/app/common/model/plus/business/Business.php b/admin/app/common/model/plus/business/Business.php
index 58a6405..add9da1 100644
--- a/admin/app/common/model/plus/business/Business.php
+++ b/admin/app/common/model/plus/business/Business.php
@@ -133,12 +133,13 @@
         !empty($paramr['city_id']) && $where['city_id'] = $paramr['city_id'];
         !empty($paramr['region_id']) && $where['region_id'] = $paramr['region_id'];
         if (!empty($paramr['sort'])) {
+            $order = ['is_top' => 'desc', 'top_time' => 'desc'];
             if ($paramr['sort'] == 'name') {
-                $order = ['name' => "asc"];
+                $order['name'] = "asc";
             } else if ($paramr['sort'] == 'time') {
-                $order = ['create_time' => "asc"];
+                $order['create_time'] = "asc";
             } else {
-                $order = ['unit' => "asc"];
+                $order['unit'] = "asc";
             }
         } else {
             // 检查置顶时间是否过期,如果过期则设置为非置顶

--
Gitblit v1.9.2