public object FlagRead([FromBody] JObject json) { try { string res = json.Value <string>("json"); dynamic dy = JsonConvert.DeserializeObject <ExpandoObject>(res); string userId = dy.userid; OperatorProvider.AppUserId = userId; //设置当前用户 Operator user = OperatorProvider.Provider.Current(); messagebll.FlagReadMessage(user.Account); return(new { code = 0, count = 1, info = "成功", }); } catch (Exception ex) { return(new { code = -1, count = 0, info = ex.Message }); } }