diff --git a/composer.json b/composer.json index 732560d..b73b378 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "百家云直播", "type": "library", "license": "MIT", - "version": "0.3", + "version": "0.4", "authors": [ { "name": "Jake zou", diff --git a/src/BJCloud.php b/src/BJCloud.php index 10ee632..871aa9a 100644 --- a/src/BJCloud.php +++ b/src/BJCloud.php @@ -22,12 +22,12 @@ class BJCloud */ public function __construct($config) { - if ($config['partnerId'] ?? null) { - $this->partnerId = $config['partnerId']; + if ($config['partner_id'] ?? null) { + $this->partnerId = $config['partner_id']; } - if ($config['partnerKey'] ?? null) { - $this->partnerKey = $config['partnerKey']; + if ($config['partner_key'] ?? null) { + $this->partnerKey = $config['partner_key']; } if ($config['domain'] ?? null) {