diff --git a/extend/catcher/library/WeChat.php b/extend/catcher/library/WeChat.php index 94bc16c..dd00106 100644 --- a/extend/catcher/library/WeChat.php +++ b/extend/catcher/library/WeChat.php @@ -7,4 +7,29 @@ * @author JaguarJack * @copyright By CatchAdmin * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt - */ \ No newline at end of file + */ +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))); + } +} \ No newline at end of file