@@ -33,40 +33,40 @@ public static function getFacadeAccessor()
3333 /**
3434 * @return \EasyWeChat\OfficialAccount\Application
3535 */
36- public static function officialAccount ()
36+ public static function officialAccount ($ name = '' )
3737 {
38- return app ('wechat.official_account ' );
38+ return $ name ? app ( ' wechat.official_account. ' . $ name ) : app ('wechat.official_account ' );
3939 }
4040
4141 /**
4242 * @return \EasyWeChat\Work\AgentFactory
4343 */
44- public static function work ()
44+ public static function work ($ name = '' )
4545 {
46- return app ('wechat.work ' );
46+ return $ name ? app ( ' wechat.work. ' . $ name ) : app ('wechat.work ' );
4747 }
4848
4949 /**
5050 * @return \EasyWeChat\Payment\Application
5151 */
52- public static function payment ()
52+ public static function payment ($ name = '' )
5353 {
54- return app ('wechat.payment ' );
54+ return $ name ? app ( ' wechat.payment. ' . $ name ) : app ('wechat.payment ' );
5555 }
5656
5757 /**
5858 * @return \EasyWeChat\MiniProgram\Application
5959 */
60- public static function miniProgram ()
60+ public static function miniProgram ($ name = '' )
6161 {
62- return app ('wechat.mini_program ' );
62+ return $ name ? app ( ' wechat.mini_program. ' . $ name ) : app ('wechat.mini_program ' );
6363 }
6464
6565 /**
6666 * @return \EasyWeChat\OpenPlatform\Application
6767 */
68- public static function openPlatform ()
68+ public static function openPlatform ($ name = '' )
6969 {
70- return app ('wechat.open_platform ' );
70+ return $ name ? app ( ' wechat.open_platform. ' . $ name ) : app ('wechat.open_platform ' );
7171 }
7272}
0 commit comments