mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-12 10:52:48 +00:00
41 lines
717 B
PHP
41 lines
717 B
PHP
<?php
|
|
|
|
namespace core\oauth;
|
|
|
|
|
|
use app\service\core\wechat\CoreWechatService;
|
|
|
|
/**
|
|
* 微信公众号登录
|
|
* Class Wechat
|
|
* @package core\oauth
|
|
*/
|
|
class Wechat extends BaseOauth
|
|
{
|
|
|
|
/**
|
|
* @param array $config
|
|
* @return 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()->oauth;
|
|
}
|
|
|
|
public function oauth(string $code = null, array $options = [])
|
|
{
|
|
// $this->instance()->
|
|
// TODO: Implement oauth() method.
|
|
}
|
|
}
|