config = [ 'app_id' => 'wx52b56e5d84b68877', 'secret' => '4e673d40629698a52aed41339f1c2ab4', 'token' => 'ydmheyiguanhezuo', 'aes_key' => 'LntRHYrfBjQ43tYhlTev09wUPu06w03yeCb8Bl7Ibjq', 'response_type' => 'array', // 'OAuth_redirect_uri' => 'http://cp.l1.ttut.cc/wechat/officialaccount/OauthUser', 'oauth' => [ 'scopes' => ['snsapi_userinfo'], 'callback' => 'https://www.yiguanfep.com/wechat/officialaccount/OauthUser', ], ]; $this->app = Factory::officialAccount($this->config); } }