/// <summary> /// 默认构造函数 /// </summary> /// <param name="accountService">帐号服务接口</param> /// <param name="gloCache">全局缓存</param> public AccountController(IAccountService accountService, GlobalCache gloCache) { this.accountService = accountService; this.gloCache = gloCache; ViewBag.UserCount = gloCache.UserCount(); }