Wechat.php 716 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace core\oauth;
  3. use app\service\core\wechat\CoreWechatService;
  4. /**
  5. * 微信公众号登录
  6. * Class Wechat
  7. * @package core\oauth
  8. */
  9. class Wechat extends BaseOauth
  10. {
  11. /**
  12. * @param array $config
  13. * @return void
  14. */
  15. protected function initialize(array $config = [])
  16. {
  17. parent::initialize($config);
  18. }
  19. public function getFansInfo(string $openid = null)
  20. {
  21. // TODO: Implement getFansInfo() method.
  22. }
  23. public function instance()
  24. {
  25. return CoreWechatService::app()->oauth;
  26. }
  27. public function oauth(string $code = null, array $options = [])
  28. {
  29. // $this->instance()->
  30. // TODO: Implement oauth() method.
  31. }
  32. }