예제 #1
0
        /// <summary>
        /// Riskman
        /// </summary>
        public void RiskmanStart()
        {
            CacheTool.MatchAdd(MatchId);
            DataSave.UpdateMatchReplayStatus(MatchId, 6);
            DataSave.UpdateMatcScore(MatchId, "0:0");
            DataSave.DeleteAndBackupOdds(MatchId);
            //DataSave.UpdateOddsStatus(MatchId, 4);


            if (Scout.Length > 0)
            {
                Log.Info($"賽事編號:{MatchId} 開始傳送走地資料");
                PushScoutToMq(0);
            }
            else
            {
                Log.Info($"賽事編號:{MatchId} 沒有走地資料");
            }

            if (RiskOddsDataList.Count > 0)
            {
                Log.Info($"賽事編號:{MatchId} 開始傳送賠率資料");
                PushOddsToRiskMan(0);
            }
            else
            {
                Log.Info($"賽事編號:{MatchId} 沒有賠率資料");
            }
        }
예제 #2
0
        public void BetRadarStart()
        {
            CacheTool.MatchAdd(MatchId);
            DataSave.UpdateMatchReplayStatus(MatchId, 6);
            DataSave.UpdateMatcScore(MatchId, "0:0");
            //DataSave.DeleteAndBackupOdds(MatchId);
            DataSave.UpdateOddsStatus(MatchId, 4);


            if (Scout.Length > 0)
            {
                Log.Info($"賽事編號:{MatchId} 開始傳送走地資料");
                PushScoutToMq(0);
            }
            else
            {
                Log.Info($"賽事編號:{MatchId} 沒有走地資料");
            }

            if (Odds.Length > 0)
            {
                Log.Info($"賽事編號:{MatchId} 開始傳送賠率資料");
                PushOddstToSportServer(0);
            }
            else
            {
                Log.Info($"賽事編號:{MatchId} 沒有賠率資料");
            }
        }
예제 #3
0
        public void RiskmanStart()
        {
            CacheTool.MatchAdd(MatchId);
            DataSave.UpdateMatchReplayStatus(MatchId, 6);
            DataSave.UpdateMatcScore(MatchId, "0:0");
            DataSave.DeleteAndBackupOdds(MatchId);

            Log.Info($"賽事編號:{MatchId} 開始傳送走地資料");
            Log.Info($"賽事編號:{MatchId} 開始傳送賠率資料");

            if (flag == 1)
            {
                for (int i = 0, j = 0; i <= RiskOddsDataList.Count; i++)
                {
                    PushProcessByOdds(i, j);
                    if (j == 0 || i == modIndex || (i - modIndex) % avgIndex == 0)
                    {
                        j = j + 1;
                    }
                    Thread.Sleep(avgTimeForOdds);
                }
            }
            else
            {
                for (int i = 0, j = 0; i <= Scout.Length; i++)
                {
                    PushProcessByScout(i, j);
                    if (j == 0 || i == modIndex || (i - modIndex) % avgIndex == 0)
                    {
                        j = j + 1;
                    }
                    Thread.Sleep(avgTimeForOdds);
                }
            }
        }
예제 #4
0
 public ThreadWork(JobParam jParam)
 {
     if (CacheTool.MatchList.Count <= 5)
     {
         Log.Info($"即將重播 {jParam.MatchID} 場的賽事走地與賠率資料");
         new Match(jParam.MatchID, jParam.Time).BetRadarStart();
         CacheTool.MatchAdd(jParam.MatchID);
     }
 }
예제 #5
0
        public void BetRadarStart()
        {
            CacheTool.MatchAdd(MatchId);
            DataSave.UpdateMatchReplayStatus(MatchId, 6);
            DataSave.UpdateMatcScore(MatchId, "0:0");
            DataSave.UpdateOddsStatus(MatchId, 4);

            Log.Info($"賽事編號:{MatchId} 開始傳送走地資料");
            Log.Info($"賽事編號:{MatchId} 開始傳送賠率資料");
            int j = 0;

            for (int i = 0; i <= Odds.Length; i++)
            {
                PushProcess(i, j);
                if (j == 0 || i == modIndex || (i - modIndex) % avgIndex == 0)
                {
                    j = j + 1;
                }
                Thread.Sleep(avgTimeForOdds);
            }
        }