From 924c2a9019cc254edce63b96b4876956144c0e45 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 30 Apr 2024 18:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/order/RetailOrderList.php | 2 +- config/redis.php | 10 ++++------ config/server.php | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/api/lists/order/RetailOrderList.php b/app/api/lists/order/RetailOrderList.php index 7192b99..fc2663f 100644 --- a/app/api/lists/order/RetailOrderList.php +++ b/app/api/lists/order/RetailOrderList.php @@ -40,7 +40,7 @@ class RetailOrderList extends BaseAdminDataLists implements ListsSearchInterface * @throws \think\db\exception\ModelNotFoundException * @date 2024/04/27 11:26 */ - public function lists($where=[]): array + public function lists(): array { $userId=$this->request->userId; if(!$userId) return []; diff --git a/config/redis.php b/config/redis.php index 12ab362..c5a8234 100644 --- a/config/redis.php +++ b/config/redis.php @@ -11,13 +11,11 @@ * @link http://www.workerman.net/ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ -use function DI\env; - return [ 'default' => [ - 'host' => '127.0.0.1', - 'password' => '', - 'port' => 6379, - 'database' => 1, + 'host' =>getenv('REDIS_HOST'), + 'password' => getenv('REDIS_PASSWORD'), + 'port' => getenv('REDIS_PORT'), + 'database' => getenv('REDIS_DB'), ], ]; diff --git a/config/server.php b/config/server.php index 84ea0ef..4517957 100644 --- a/config/server.php +++ b/config/server.php @@ -13,7 +13,7 @@ */ return [ - 'listen' => 'http://0.0.0.0:8787', + 'listen' => 'http://0.0.0.0:8596', 'transport' => 'tcp', 'context' => [], 'name' => 'webman',