Commit 5bda19d9 authored by 朱招明's avatar 朱招明

update

parent 7f5d75f5
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
}, },
"files": [ "files": [
"src/helpers.php", "src/helpers.php",
"config/wike.php"
] ]
}, },
"require": { "require": {
......
<?php <?php
return [ return [
'app_key' => 'app_key', 'weike' => [
'app_secret' => 'app_secret', 'app_key' => '',
'app_secret' => '',
],
]; ];
\ No newline at end of file
...@@ -20,7 +20,7 @@ class Base ...@@ -20,7 +20,7 @@ class Base
if($config){ if($config){
$this->config = $config; $this->config = $config;
}else{ }else{
$this->config = config('wike'); $this->config = config('third_api.weike');
} }
if(empty($this->config['app_key'])){ if(empty($this->config['app_key'])){
throw new \Exception("缺少 app_key"); throw new \Exception("缺少 app_key");
......
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