/** * 退出登录 */ public void logout(Action <Error, string> action) { Dictionary <string, object> dic = new Dictionary <string, object>(); HttpUtil.Http.Post(URLManager.logoutUrl()).Form(dic).OnSuccess(result => { if (result != null) { action(null, null); } }).OnFail(result => { if (action != null) { action(new Error(500, null), null); } }).Go(); }