/// <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} 沒有賠率資料"); } }
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} 沒有賠率資料"); } }
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); } } }
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); } }