配置获取
This commit is contained in:
@@ -4,6 +4,7 @@ namespace app\controller;
|
||||
|
||||
use EasyWeChat\Factory;
|
||||
use EasyWeChat\OfficialAccount\Application;
|
||||
use think\facade\Config;
|
||||
|
||||
class Wechat
|
||||
{
|
||||
@@ -17,7 +18,7 @@ class Wechat
|
||||
*/
|
||||
private function initWechat()
|
||||
{
|
||||
$this->app = Factory::officialAccount(config('wechat'));
|
||||
$this->app = Factory::officialAccount(Config::get('wechat'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user