private void Toggle_Click(EState targetState) { if (state != targetState) { state = targetState; } PayContent.SetActive(state == EState.Pay); GiftContent.SetActive(state == EState.Gift); EquipContent.SetActive(state == EState.Equip); PropContent.SetActive(state == EState.Prop); Refresh(); }
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)); }
public bool isPaid(PayContent content, int userId) { string whereSql = BuildWhereSql(userId: userId, contentId: content.Id); return(GetCount(whereSql) > 0); }