全栈小学生 754f840005 1
2023-05-31 11:20:35 +08:00

44 lines
820 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2023-02-17
* Time: 15:58
*/
namespace core\oauth;
use app\service\core\wechat\CoreWechatService;
/**
* 微信公众号登录
* Class Wechat
* @package core\oauth
*/
class Wechat extends BaseOauth
{
/**
* @param array $config
* @return mixed|void
*/
protected function initialize(array $config = [])
{
parent::initialize($config);
}
public function getFansInfo(string $openid = null)
{
// TODO: Implement getFansInfo() method.
}
public function instance(){
return CoreWechatService::app($this->site_id)->oauth;
}
public function oauth(string $code = null, array $options = [])
{
// $this->instance()->
// TODO: Implement oauth() method.
}
}