Commit 3b36adf0 by xmy

cmq配置

parent ccfe4071
......@@ -27,6 +27,7 @@ class Account
public function __construct($host = '', $secretId = '', $secretKey = '')
{
$config = include alias('@vendor/hdll/services/src/Common/Config') . '/config.php';
$config = $config['cmq'];
$this->host = $host ?? $config['host'];
$this->secretId = $secretId ?? $config['secretId'];
$this->secretKey = $secretKey ?? $config['secretKey'];
......
......@@ -25,7 +25,6 @@ class Xcrypt{
public function __construct($key = '', $mode = 'cbc', $iv = "off")
{
$config = include alias('@vendor/hdll/services/src/Common/Config') . '/config.php';
$config = $config['qCloud'];
$key = $key ?? $config['cryptKey'];
switch (strlen($key)) {
case 8:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment