zhoulj il y a 4 ans
Parent
commit
fa9c0b55a3

+ 5 - 1
app/Modules/OfficialAccount/Services/OfficialAccountService.php

@@ -21,7 +21,11 @@ use Redis;
 class OfficialAccountService
 {
 
-    public $secret_key = env('PASSWD_SECRET_KEY');
+    public $secret_key ;
+    public function __construct()
+    {
+        $this->secret_key = env('SECRET_KEY');
+    }
 
     //-----------公众号---------------