예제 #1
0
파일: Users.cs 프로젝트: terryxym/DiscuzNT
        /// <summary>
        /// 购买主题
        /// </summary>
        /// <param name="uid">用户ID</param>
        /// <param name="tid">主题ID</param>
        /// <param name="posterid">发帖人ID</param>
        /// <param name="price">售价</param>
        /// <param name="netamount">净收入</param>
        /// <param name="creditsTrans">要更新的扩展积分ID</param>
        public static void BuyTopic(int uid, int tid, int posterid, int price, float netamount, int creditsTrans)
        {
            DatabaseProvider.GetInstance().BuyTopic(uid, tid, posterid, price, netamount, creditsTrans);

            if (appDBCache)
                IUserService.BuyTopic(uid, tid, posterid, price, netamount, creditsTrans);
        }