From b8961f178740f99ce54cfcbfd88235eaf8b79872 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 12 Dec 2025 18:59:02 +0800
Subject: [PATCH] 保证金和年卡放同一个页面
---
admin/app/common/model/plus/business/Business.php | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/admin/app/common/model/plus/business/Business.php b/admin/app/common/model/plus/business/Business.php
index 58a6405..67c2145 100644
--- a/admin/app/common/model/plus/business/Business.php
+++ b/admin/app/common/model/plus/business/Business.php
@@ -132,18 +132,18 @@
!empty($paramr['province_id']) && $where['province_id'] = $paramr['province_id'];
!empty($paramr['city_id']) && $where['city_id'] = $paramr['city_id'];
!empty($paramr['region_id']) && $where['region_id'] = $paramr['region_id'];
+ // 检查置顶时间是否过期,如果过期则设置为非置顶
+ $this->checkTopExpire();
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 {
- // 检查置顶时间是否过期,如果过期则设置为非置顶
- $this->checkTopExpire();
-
// 按置顶状态和创建时间排序
$order = ['is_top' => 'desc', 'top_time' => 'desc', 'create_time' => 'desc'];
}
--
Gitblit v1.9.2