42 lines
534 B
PHP
42 lines
534 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace officialaccount;
|
||
|
|
|
||
|
|
|
||
|
|
use common\Config;
|
||
|
|
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|