Ejemplo n.º 1
0
        /// <summary>
        /// 将用户的未读短信息数量减小一个指定的值
        /// </summary>
        /// <param name="uid">用户ID</param>
        /// <param name="subval">短消息将要减小的值,负数为加</param>
        /// <returns>更新记录个数</returns>
        public static int DecreaseNewPMCount(int uid, int subval)
        {
            if (appDBCache)
                IUserService.DecreaseNewPMCount(uid, subval);

            return DatabaseProvider.GetInstance().DecreaseNewPMCount(uid, subval);
        }