配置获取

This commit is contained in:
2022-09-09 11:58:34 +08:00
parent 87aa9237b5
commit d06ac577fe

View File

@@ -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'));
}
/**