Browse Source

amqp端口强制转int

rkljw 8 months ago
parent
commit
56a24212bb
4 changed files with 8 additions and 6 deletions
  1. 4 4
      .env
  2. 3 1
      config/autoload/amqp.php
  3. 0 0
      runtime/container/scan.cache
  4. 1 1
      runtime/hyperf.pid

+ 4 - 4
.env

@@ -16,10 +16,10 @@ REDIS_AUTH=123456
 REDIS_PORT=6379
 REDIS_DB=0
 
-AMQP_HOST = 192.168.1.201
-AMQP_PORT = 5672
-AMQP_USER = admin
-AMQP_PASSWORD = 123456
+AMQP_HOST=192.168.1.201
+AMQP_PORT=5672
+AMQP_USER=admin
+AMQP_PASSWORD=123456
 
 
 #小程序获取openid

+ 3 - 1
config/autoload/amqp.php

@@ -1,10 +1,12 @@
 <?php
+
+declare(strict_types=1);
 use function Hyperf\Support\env;
 return [
     'enable' => true,
     'default' => [
         'host' =>  env('AMQP_HOST', '192.168.1.201'),
-        'port' =>  env('AMQP_PORT', '5672'),
+        'port' =>  (int)env('AMQP_PORT', 5672),
         'user' =>  env('AMQP_USER', 'admin'),
         'password' =>  env('AMQP_PASSWORD', '123456'),
         'vhost' => '/',

File diff suppressed because it is too large
+ 0 - 0
runtime/container/scan.cache


+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-33337
+67096

Some files were not shown because too many files changed in this diff