2019-11-11 18:14:47 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
2020-03-05 12:41:49 +08:00
|
|
|
namespace wchat\officialaccount;
|
2019-11-11 18:14:47 +08:00
|
|
|
|
|
|
|
|
|
2020-03-05 12:41:49 +08:00
|
|
|
use wchat\common\Config;
|
2019-11-11 18:14:47 +08:00
|
|
|
|
|
|
|
|
class WxSDK
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param Config $config
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public static function authorization(Config $config)
|
|
|
|
|
{
|
|
|
|
|
return Authorization::getInstance($config);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param Config $config
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public static function qrCode(Config $config)
|
|
|
|
|
{
|
|
|
|
|
return QrCode::getInstance($config);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param Config $config
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public static function news(Config $config)
|
|
|
|
|
{
|
|
|
|
|
return NewsManager::getInstance($config);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|