From feda780069d64479c0c20493603717e100655da9 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 05 Dec 2025 18:26:25 +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