protected void Page_Load(object sender, EventArgs e) { //防止缓存 Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache"; //机器人自动下游是否开启 int _robotState = int.Parse(ub.GetSub("SSERobotState", xmlPath)); if (_robotState == 0) { HttpContext.Current.Response.Write("===========机器人自动投注功能已关闭===========<br />"); return; } //是否在下注时间里 if (BCW.SSE.SSE.Instance().CheckBuyValidity == false) { Response.Write("现在是非下单时间,不能进行自动投注"); return; } RobotStrategyManager.Instance().SetStrategy(ESseRobotStrategyName.e_normal); //设置执行哪种下单策略 RobotStrategyManager.Instance().Execute(); //执行 RobotStrategyManager.Instance().currRobot.responseInfo = ResopnseInfo; }
public static RobotStrategyManager Instance() { if (mInstance == null) { mInstance = new RobotStrategyManager(); } return(mInstance); }
public void ResopnseInfo() { SSERobot_Normal _robot = ( SSERobot_Normal )RobotStrategyManager.Instance().currRobot; HttpContext.Current.Response.Write("===========以下是自动投注信息===========<br />"); HttpContext.Current.Response.Write(string.Format("机器人ID:{0} <br />", _robot.meid)); HttpContext.Current.Response.Write(string.Format("机器人名称:{0} <br />", _robot.self.UsName)); HttpContext.Current.Response.Write(string.Format("投注期数:{0} <br />", _robot.sseNo)); HttpContext.Current.Response.Write(string.Format("投注类型:{0} <br />", _robot.buyType == 0 ? "猜跌" : "猜涨")); HttpContext.Current.Response.Write(string.Format("投注金额:{0} <br />", _robot.buyMoney)); }