Exemple #1
0
        /// <summary>
        /// -1 未找到
        /// 0未投注
        /// 1投注成功
        /// 2投注失败
        /// </summary>
        /// <param name="prevIssueNo"></param>
        /// <param name="type"></param>
        /// <param name="codes"></param>
        /// <returns></returns>
        public int GetPrevBettingResult(long prevIssueNo, TouzhuTypeEnum type)
        {
            if (lastBetRecord.IssueNo <= 0)
            {
                return(0);
            }
            string        codes  = lastBetRecord.codes.ToString();
            JJOG1K3Result entity = OG1K3List.Find(o => o.issueNo == prevIssueNo);

            if (entity != null)
            {
                if (type == TouzhuTypeEnum.单双)
                {
                    if (codes == entity.danshuang)
                    {
                        return(1);
                    }
                    else
                    {
                        return(2);
                    }
                }
                else
                {
                    if (codes == entity.daxiao)
                    {
                        return(1);
                    }
                    else
                    {
                        return(2);
                    }
                }
            }
            else
            {
                return(-1);
            }
        }
Exemple #2
0
 public TouzhuKit(TouzhuTypeEnum type, int repeatSum, int tzmoney)
 {
     Type      = type;
     RepeatSum = repeatSum;
     BaseMoney = tzmoney;
 }