This commit is contained in:
mkm 2024-04-30 18:19:45 +08:00
parent a44364f031
commit 924c2a9019
3 changed files with 6 additions and 8 deletions

View File

@ -40,7 +40,7 @@ class RetailOrderList extends BaseAdminDataLists implements ListsSearchInterface
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @date 2024/04/27 11:26 * @date 2024/04/27 11:26
*/ */
public function lists($where=[]): array public function lists(): array
{ {
$userId=$this->request->userId; $userId=$this->request->userId;
if(!$userId) return []; if(!$userId) return [];

View File

@ -11,13 +11,11 @@
* @link http://www.workerman.net/ * @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License * @license http://www.opensource.org/licenses/mit-license.php MIT License
*/ */
use function DI\env;
return [ return [
'default' => [ 'default' => [
'host' => '127.0.0.1', 'host' =>getenv('REDIS_HOST'),
'password' => '', 'password' => getenv('REDIS_PASSWORD'),
'port' => 6379, 'port' => getenv('REDIS_PORT'),
'database' => 1, 'database' => getenv('REDIS_DB'),
], ],
]; ];

View File

@ -13,7 +13,7 @@
*/ */
return [ return [
'listen' => 'http://0.0.0.0:8787', 'listen' => 'http://0.0.0.0:8596',
'transport' => 'tcp', 'transport' => 'tcp',
'context' => [], 'context' => [],
'name' => 'webman', 'name' => 'webman',