Esempio n. 1
0
 public EntNews GetContentFormatEnt(EntNews newsModel, int?userId = null)
 {
     if (newsModel.paycontent == 0)
     {
         return(newsModel);
     }
     return(GetContentFormatEnt(new List <EntNews>()
     {
         newsModel
     }, userId).FirstOrDefault());
 }
Esempio n. 2
0
        public int AddPayRecordEnt(EntGoodsOrder order, EntNews attachContent, PayContent payContent, PayContentPayment payInfo)
        {
            PaidSnapShot snapshot = new PaidSnapShot
            {
                UserName      = order.AccepterName,
                Contact       = order.AccepterTelePhone,
                ContentType   = payContent.ContentType,
                ArticleId     = attachContent.id,
                VideoCover    = payContent.VideoCover,
                VideoURL      = payContent.VideoURL,
                PaidAmout     = order.BuyPrice,
                OriginalAmout = payInfo.OrgAmount,
                DiscountInfo  = payInfo.Info,
            };

            return(AddPayRecord(attachContent.aid, attachContent.title, attachContent.paycontent, order.UserId, order.Id, snapshot: snapshot));
        }