Exemplo n.º 1
0
        // 初始化当前app
        private ContentApp initApp(MvcContext ctx, IMemberApp mapp)
        {
            IAppContext context = new AppContext();
            int         appId   = mapp.AppOid;

            context.Id = appId;

            ContentApp app = ContentApp.findById(appId);

            context.obj = app;
            context.setAppType(app.GetType());
            ctx.utils.setAppContext(context);
            return(app);
        }