新增微信扩展
This commit is contained in:
parent
ec5a5a8402
commit
5231770bab
@ -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)));
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user