Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuri-su committed Jan 18, 2019
1 parent 2f138be commit 01592ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
![](https://img.shields.io/github/release/ExinOne/laravel-mixin-sdk.svg?style=flat-square&colorA=333333)
[![](https://img.shields.io/badge/language-English-333333.svg?longCache=true&style=flat-square&colorA=E62B1E)](readme.md)

Mixin-Network SDK for PHP, 修改自 [ExinOne/laravel-mixin-sdk](https://github.com/ExinOne/laravel-mixin-sdk)
Mixin-Network SDK for PHP

## 框架要求

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
![](https://img.shields.io/github/release/ExinOne/mixin-sdk-php.svg?style=flat-square&colorA=333333)
[![](https://img.shields.io/badge/language-中文文档-333333.svg?longCache=true&style=flat-square&colorA=E62B1E)](readme-cn.md)

Mixin-Network SDK for PHP, modify from [ExinOne/laravel-mixin-sdk](https://github.com/ExinOne/laravel-mixin-sdk)
Mixin-Network SDK for PHP

## Requirement

Expand Down
6 changes: 5 additions & 1 deletion src/MixinSDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public function __construct(array $config = [])
{
$this->useConfigName = 'default';
if (!empty($config)) {
$this->config[$this->useConfigName] = $config;
if (is_array($config['keys'] ?? 'e')) {
$this->config = $config;
} else {
$this->config[$this->useConfigName] = $config;
}
}
}

Expand Down

0 comments on commit 01592ac

Please sign in to comment.