From abc7edc3c8ad59ff213c85413d0d6a10d7a0b6f7 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Wed, 17 Dec 2025 18:03:09 +0800
Subject: [PATCH] 1. 发布供需消耗连盟币,连盟币数量在后台独立设置 2. 小程序供需个人中心可自由切换身份 3. 增加私信系统 4. 增加评论系统,用户可在发布者详情页进行评论操作,评论获得的连盟币可在后台设置 5. 增加发布者的等级,以好评个数为条件进行升级,小程序端会显示该等级的图标,如没有等级则不会显示图标 6. 增加设置消耗连盟币可以解锁、查看发布的信息,费用可在后台设置 7. 小程序供需大厅界面优化,以及增加了推荐栏目,该栏目按发布的分类相似进行匹配,比如A用户发布了 互联网 分类的需求,则会优先推荐匹配互联网分类的供应需求给他。
---
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