From ea5abd846045e1d81acd966dcec008c0b8dfdd86 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 3 Aug 2023 15:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/AccountLogLists.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/api/lists/AccountLogLists.php b/app/api/lists/AccountLogLists.php index 38668b889..f4973e492 100755 --- a/app/api/lists/AccountLogLists.php +++ b/app/api/lists/AccountLogLists.php @@ -35,7 +35,11 @@ class AccountLogLists extends BaseApiDataLists public function queryWhere() { // 指定用户 - $where[] = ['user_id', '=', $this->userId]; + if(isset($this->params['user_id']) && $this->params['user_id'] > 0){ + $this->userId = $this->params['user_id']; + }else{ + $where[] = ['user_id', '=', $this->userId]; + } // 用户月明细 if (isset($this->params['type']) && $this->params['type'] == 'um') {