public override bool AddOrder(IPlatForm pf, List <DB_PredictRecord> last30Records, string model = "li", int mul = 1) { //return base.AddOrder(pf, last30Records); var selectNum = ""; var killno1 = this.KillNo1; var killno2 = this.KillNo2; if (string.IsNullOrEmpty(killno1) && string.IsNullOrEmpty(killno2)) { DB_PredictRecord dr = new DB_PredictRecord(); var nums = this.GetTwoKillNo(last30Records.Count, last30Records, ref dr); killno1 = nums[0]; killno2 = nums[1]; } for (var i = 0; i <= 9; i++) { if (i.ToString() != killno1 && i.ToString() != killno2) { if (selectNum.Length != 14) { selectNum += i.ToString() + ","; } else { selectNum += i.ToString(); } } } var flag = pf.MakeOrder(model, mul, selectNum, pf.GetMiddleKillTwoMethodName()); return(flag); }
/// <summary> /// /// </summary> /// <param name="pf">用来下单的平台</param> /// <param name="last30Records">预测杀号,有些模型不需要,比如杀固定值</param> /// <returns></returns> public virtual bool AddOrder(IPlatForm pf, List <DB_PredictRecord> last30Records, string model = "li", int mul = 1) { return(false); }
public void InitControl(IPlatForm platForm, IModel model) { this.PlatForm = platForm; this.Model = model; }