From 2d4beee67964548f60e9834d3808ac74e0963cb5 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Sun, 3 Mar 2024 12:50:30 +0800 Subject: [PATCH] 1 --- app/api/model/Server/ServerOrder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/model/Server/ServerOrder.php b/app/api/model/Server/ServerOrder.php index 86558856..96cee119 100644 --- a/app/api/model/Server/ServerOrder.php +++ b/app/api/model/Server/ServerOrder.php @@ -220,7 +220,7 @@ class ServerOrder extends Order $query = $this; // 非店长不带入user_id查询 if (!UserService::isStore()) { - $query->where('user_id', '=', $userId); + $query = $query->where('user_id', '=', $userId); } return $query->where($dataTypeFilter) ->where('is_delete', '=', 0)