src/Wechat.php
public function getMiniProgram()
    {
        if (!self::$_miniProgram instanceof Factory)
        {
            self::$_miniProgram = Factory::miniProgram(Yii::$app->params['wechatMiniProgramConfig']);
        }

        return self::$_miniProgram;
    }
public function getMiniProgram()
    {
        if (!self::$_miniProgram instanceof Factory)
        {
            self::$_miniProgram = Factory::miniProgram(Yii::$app->params['wechatMiniProgramConfig']);
        }

        return self::$_miniProgram;
    }
public function getMiniProgram ( ) { if ( ! self :: $ _miniProgram instanceof Factory ) { self :: $ _miniProgram = Factory :: miniProgram ( Yii :: $ app -> params [ 'wechatMiniProgramConfig' ] ) ; } return self :: $ _miniProgram ; }
获取 EasyWeChat 微信小程序实例

@return Factory
获取 EasyWeChat 微信小程序实例