Gzhconfig.php 904 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\wechat\controller;
  3. // require __DIR__.'/vendor/autoload.php';
  4. // use w7corp\OfficialAccount\Application;
  5. use EasyWeChat\Factory;
  6. class Gzhconfig{
  7. private $config;
  8. public $app;
  9. public function __construct(){
  10. $this->config = [
  11. 'app_id' => 'wx52b56e5d84b68877',
  12. 'secret' => '4e673d40629698a52aed41339f1c2ab4',
  13. 'token' => 'ydmheyiguanhezuo',
  14. 'aes_key' => 'LntRHYrfBjQ43tYhlTev09wUPu06w03yeCb8Bl7Ibjq',
  15. 'response_type' => 'array',
  16. // 'OAuth_redirect_uri' => 'http://cp.l1.ttut.cc/wechat/officialaccount/OauthUser',
  17. 'oauth' => [
  18. 'scopes' => ['snsapi_userinfo'],
  19. 'callback' => 'https://www.yiguanfep.com/wechat/officialaccount/OauthUser',
  20. ],
  21. ];
  22. $this->app = Factory::officialAccount($this->config);
  23. }
  24. }