From 4711bb8fb2fb16c4eb1cdf6c0314069d85e77a67 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 27 Nov 2025 14:47:00 +0800
Subject: [PATCH] 名片聊天
---
admin/app/shop/model/branch/Branch.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/admin/app/shop/model/branch/Branch.php b/admin/app/shop/model/branch/Branch.php
index 6dd8ae0..c95aba0 100644
--- a/admin/app/shop/model/branch/Branch.php
+++ b/admin/app/shop/model/branch/Branch.php
@@ -29,7 +29,7 @@
// 查询列表数据
return $model->with(['superUser'])
->where('is_delete', '=', '0')
- ->order(['create_time' => 'desc'])
+ ->order(['sort' => 'desc', 'create_time' => 'desc'])
->paginate($params);
}
@@ -119,7 +119,7 @@
// 修改登录用户
$user_model = $this['superUser'];
$user_data = [
- // 'user_id' => $branch['user_id'],
+ 'user_id' => $branch['user_id'],
'user_name' => $branch['user_name']
];
if (isset($branch['password']) && !empty($branch['password'])) {
--
Gitblit v1.9.2