コード例 #1
0
ファイル: SSERobot.aspx.cs プロジェクト: radtek/GitKB288
    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));
    }
コード例 #2
0
ファイル: SSERobot.aspx.cs プロジェクト: radtek/GitKB288
    private DateTime _lastOrderTime;            //上次投注时的时间.


    public override void Enter()
    {
        //创建该策略下对应的机器人
        SSERobot_Normal _robot;

        if (arryRobot != null)
        {
            foreach (string _robotId in arryRobot)
            {
                _robot = new SSERobot_Normal();
                _robot.Init(int.Parse(_robotId));
                lstRobot.Add(_robot);
            }
        }

        _sendOrderSpace = Utils.ParseInt(ub.GetSub("SSERobotOrderSpace", xmlPath));

        //计算1个投注周期内每笔自动投注的时间间隔
        _lastOrderTime = System.DateTime.Now;
    }