/** * 获取用户背包列表 */ public void bagList(Action <Error, UserBagList> action) { Dictionary <string, object> dic = new Dictionary <string, object>(); HttpUtil.Http.Get(URLManager.bagList()).OnSuccess(result => { if (result != null) { UserBagList userBagList = JsonMapper.ToObject <UserBagList>(result); action(null, userBagList); } }).OnFail(result => { action(new Error(500, null), null); }).Go(); }