新增微信扩展

This commit is contained in:
JaguarJack 2020-06-07 14:23:07 +08:00
parent ec5a5a8402
commit 5231770bab

View File

@ -7,4 +7,29 @@
* @author JaguarJack <njphper@gmail.com> * @author JaguarJack <njphper@gmail.com>
* @copyright By CatchAdmin * @copyright By CatchAdmin
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
*/ */
namespace catcher\library;
use EasyWeChat\Factory;
use think\helper\Str;
/**
*
* @method static officialAccount()
* @method static miniProgram()
* @method static openPlatform()
* @method static work()
* @method static openWork()
* @method static payment()
*
* Class WeChat
* @package catcher\library
*/
class WeChat
{
public static function __callStatic($name, $arguments)
{
// TODO: Implement __callStatic() method.
return Factory::{$name}(\config('wechat.'. Str::snake($name)));
}
}