Skip to content

Commit

Permalink
配置文件 蛇形 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulux committed Dec 10, 2019
1 parent 1c895a8 commit aa72adf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "百家云直播",
"type": "library",
"license": "MIT",
"version": "0.3",
"version": "0.4",
"authors": [
{
"name": "Jake zou",
Expand Down
8 changes: 4 additions & 4 deletions src/BJCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aa72adf

Please sign in to comment.