/// <summary> /// 下注失败 /// </summary> /// <param name="data"></param> /// <returns></returns> public static feiPanJieGuo SetFeiPanJieGuo(feiPanJieGuo data, bool success) { for (int i = 0; i < 10; i++) { for (int x = 0; x < 5; x++) { data.QD[x, i] = success; } } for (int i = 0; i < 5; i++)//大小单双 { for (int x = 0; x < 4; x++) { data.DXDS[i, x] = success; } } for (int i = 0; i < 4; i++)//总和 总和组合 龙虎和 { data.ZHDXDS[i] = success; } for (int i = 0; i < 3; i++)//龙虎和 { data.LHH[i] = success; } return(data); }
public static feiPanJieGuo xiaZhu_shunfen(xztj xiaZhu, string qiHao, feiPanJieGuo fpjgData) { _serPeilv = ServerShunFeng.getPeilv(FeidanUrlShunFen, _webCookieShunFen); decimal yuE = 0; if (IsLoginSuccess && _serPeilv != null) { fpjgData = ServerShunFeng.xiaZhu(FeidanUrlShunFen, _webCookieShunFen, _serPeilv, xiaZhu, _serValidate, qiHao, fpjgData); if (fpjgData.isSuccess == true) { //获取余额 yuE = ServerShunFeng.getYuE(FeidanUrlShunFen, _webCookieShunFen); } } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "链接异常"; //提交失败 fpjgData = ServerCommon.SetFeiPanJieGuo(fpjgData, false); } fpjgData.yuE = yuE.ToString(); KeYongYuE = yuE; return(fpjgData); }
public static feiPanJieGuo xiaZhu(string url, CookieContainer webCookie, peilv peiLv, xztj xiaZhu, string validate, string qiHao, feiPanJieGuo fpjgData) { fpjgData.isSuccess = false; feiPanJieGuo fpjgDataTemp = new feiPanJieGuo(); int xiaZhuJiFen = 0; //获取余额 decimal yuE = ServerShunFeng.getYuE(url, webCookie); try { int xiaZhuJiFen_Temp = 0; string s_uPI_ID = ""; string s_uPI_P = ""; string s_uPI_M = ""; bool tiJiaoResult = false; #region 大小单双 s_uPI_ID = ""; s_uPI_P = ""; s_uPI_M = ""; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 5; i++)//大小单双 { for (int x = 0; x < 4; x++) { if (xiaZhu.DXDS[i, x] > 0 && fpjgData.DXDS[i, x] == false) { s_uPI_ID += "," + fpCanShu.DXDS[i, x]; s_uPI_P += "," + peiLv.DXDS[i, x]; s_uPI_M += "," + xiaZhu.DXDS[i, x]; xiaZhuJiFen_Temp += xiaZhu.DXDS[i, x]; } } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (s_uPI_ID.Length > 0) { function.log("下注大小单双"); tiJiaoResult = postXiaZhu(url, webCookie, validate, s_uPI_ID, s_uPI_P, s_uPI_M); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 5; i++)//大小单双 { for (int x = 0; x < 4; x++) { fpjgData.DXDS[i, x] = true; fpjgDataTemp.DXDS[i, x] = true; } } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } #endregion 大小单双 #region 单球 for (int x = 0; x < 5; x++) { if (tiJiaoResult == true) { //提交成功继续 s_uPI_ID = ""; s_uPI_P = ""; s_uPI_M = ""; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 5; i++) { if (xiaZhu.QD[x, i] > 0 && fpjgData.QD[x, i] == false) { s_uPI_ID += "," + fpCanShu.QD[x, i]; s_uPI_P += "," + peiLv.QD[x, i]; s_uPI_M += "," + xiaZhu.QD[x, i]; xiaZhuJiFen_Temp += xiaZhu.QD[x, i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (s_uPI_ID.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, validate, s_uPI_ID, s_uPI_P, s_uPI_M); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 5; i++) { fpjgData.QD[x, i] = true; fpjgDataTemp.QD[x, i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } if (tiJiaoResult == true) { //提交成功继续 s_uPI_ID = ""; s_uPI_P = ""; s_uPI_M = ""; xiaZhuJiFen_Temp = 0; for (int i = 5; i < 10; i++) { if (xiaZhu.QD[x, i] > 0 && fpjgData.QD[x, i] == false) { s_uPI_ID += "," + fpCanShu.QD[x, i]; s_uPI_P += "," + peiLv.QD[x, i]; s_uPI_M += "," + xiaZhu.QD[x, i]; xiaZhuJiFen_Temp += xiaZhu.QD[x, i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (s_uPI_ID.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, validate, s_uPI_ID, s_uPI_P, s_uPI_M); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 5; i < 10; i++) { fpjgData.QD[x, i] = true; fpjgDataTemp.QD[x, i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } } #endregion 单球 #region 龙虎和 总和 if (tiJiaoResult == true) { //提交成功继续 s_uPI_ID = ""; s_uPI_P = ""; s_uPI_M = ""; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 3; i++)//龙虎和 { if (xiaZhu.LHH[i] > 0 && fpjgData.LHH[i] == false) { s_uPI_ID += "," + fpCanShu.LHH[i]; s_uPI_P += "," + peiLv.LHH[i]; s_uPI_M += "," + xiaZhu.LHH[i]; xiaZhuJiFen_Temp += xiaZhu.LHH[i]; } } for (int i = 0; i < 4; i++)//总和 总和组合 龙虎和 { if (xiaZhu.ZHDXDS[i] > 0 && fpjgData.ZHDXDS[i] == false) { s_uPI_ID += "," + fpCanShu.ZHDXDS[i]; s_uPI_P += "," + peiLv.ZHDXDS[i]; s_uPI_M += "," + xiaZhu.ZHDXDS[i]; xiaZhuJiFen_Temp += xiaZhu.ZHDXDS[i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (s_uPI_ID.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, validate, s_uPI_ID, s_uPI_P, s_uPI_M); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 3; i++)//龙虎和 { fpjgData.LHH[i] = true; fpjgDataTemp.LHH[i] = true; } for (int i = 0; i < 4; i++)//总和 总和组合 龙虎和 { fpjgData.ZHDXDS[i] = true; fpjgDataTemp.LHH[i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } #endregion 龙虎和 总和 for (int i = 0; i < 4; i++)//总和组合 { fpjgData.ZHZHDXDS[i] = true; } if (tiJiaoResult == true) { fpjgData.isSuccess = true; } } catch (Exception ex) { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注错误"; function.log("下注错误" + qiHao + " " + fpjgData.errorMessage); //提交失败 //fpjgData = ServerCommon.SetJieGuoFaile(fpjgData); throw ex; } // fpjgData.xiaZhu = xiaZhuJiFen.ToString(); return(fpjgData); }
private void feiPanJieGuoInsert(xztj mXZTJ, feiPanJieGuo fpJieGuo, string qiHao) { #region 插入数据 List <KeyVal> xiaZhuData = new List <KeyVal>(); int qd = 0; int dxds = 0; int zh = 0; int zhzh = 0; int lhh = 0; string sVal = ""; int totalXiazu = 0; //球道 for (int i = 0; i < 10; i++) { for (int x = 0; x < 5; x++) { if (fpJieGuo.QD[x, i]) { qd += mXZTJ.QD[x, i]; sVal = mXZTJ.QD[x, i].ToString(); } else { sVal = mXZTJ.QD[x, i] == 0 ? "0" : fpJieGuo.errorMessage; } KeyVal c = new KeyVal("qd" + (x + 1).ToString() + "_" + i.ToString(), sVal); xiaZhuData.Add(c); // totalXiazu += mXZTJ.QD[x, i]; } } //大小单双 for (int i = 0; i < 5; i++) { for (int x = 0; x < 4; x++) { if (fpJieGuo.DXDS[i, x]) { dxds += mXZTJ.DXDS[i, x]; sVal = mXZTJ.DXDS[i, x].ToString(); } else { sVal = mXZTJ.DXDS[i, x] == 0 ? "0" : fpJieGuo.errorMessage; } KeyVal c = new KeyVal("d" + (i + 1).ToString() + "_" + x.ToString(), sVal); xiaZhuData.Add(c); // totalXiazu += mXZTJ.DXDS[i, x]; } } //总和 总和组合 for (int i = 0; i < 4; i++) { if (fpJieGuo.ZHDXDS[i]) { zh += mXZTJ.ZHDXDS[i]; sVal = mXZTJ.ZHDXDS[i].ToString(); } else { sVal = mXZTJ.ZHDXDS[i] == 0 ? "0" : fpJieGuo.errorMessage; } KeyVal c = new KeyVal("zh" + i.ToString(), sVal); xiaZhuData.Add(c); // totalXiazu += mXZTJ.ZHDXDS[i]; // if (fpJieGuo.ZHZHDXDS[i]) { zhzh += mXZTJ.ZHZHDXDS[i]; sVal = mXZTJ.ZHZHDXDS[i].ToString(); } else { sVal = mXZTJ.ZHZHDXDS[i] == 0 ? "0" : fpJieGuo.errorMessage; } KeyVal c1 = new KeyVal("zhzh" + i.ToString(), sVal); xiaZhuData.Add(c1); // totalXiazu += mXZTJ.ZHZHDXDS[i]; } // 龙虎和 for (int i = 0; i < 3; i++) { if (fpJieGuo.LHH[i]) { lhh += mXZTJ.LHH[i]; sVal = mXZTJ.LHH[i].ToString(); } else { sVal = mXZTJ.LHH[i] == 0 ? "0" : fpJieGuo.errorMessage; } KeyVal l = new KeyVal("LHH" + i.ToString(), sVal); xiaZhuData.Add(l); // totalXiazu += mXZTJ.LHH[i]; } //开奖后积分 double zjjf = 0; zjjf = qd + dxds + zh + zhzh + lhh; #endregion 插入数据 #region 增加数据 KeyVal qh = new KeyVal("期号", qiHao); xiaZhuData.Add(qh); KeyVal fwq = new KeyVal("服务器地址", fpJieGuo.serverUrl); xiaZhuData.Add(fwq); KeyVal jssj = new KeyVal("提交结束时间", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); xiaZhuData.Add(jssj); KeyVal tjhj = new KeyVal("成功提交合计", zjjf.ToString()); xiaZhuData.Add(tjhj); KeyVal dqze = new KeyVal("当期注额", totalXiazu.ToString()); xiaZhuData.Add(dqze); KeyVal syje = new KeyVal("账号剩余金额", fpJieGuo.yuE); xiaZhuData.Add(syje); KeyVal jg = new KeyVal("提交结果", fpJieGuo.isSuccess ? "提交成功" : fpJieGuo.errorMessage); xiaZhuData.Add(jg); // SQL.INSERT(xiaZhuData, " FeiPan_" + (String.IsNullOrWhiteSpace(Seq) ? CacheData.Seq : Seq)); #endregion 增加数据 }
/// <summary> /// 下注 /// </summary> public feiPanJieGuo StartXiaZhu(xztj xztj, string qiHao) { feiPanJieGuo fpjgData = new feiPanJieGuo(); fpjgData.serverUrl = ""; fpjgData.yuE = "0"; lblYuE.Text = "0"; lblServer.Text = ""; lblName.Text = ""; lblState.Text = "链接中"; if (cbStart.Checked == true) { string useServer = ""; //尝试下注 if (ServerFeiPan.checkLogin() == false) { ServerFeiPan.loginAgain(); } if (ServerFeiPan.checkLogin() == true) { if (ServerFeiPan.ServerType.Equals("顺丰")) { fpjgData.isSuccess = true; fpjgData.serverUrl += ServerFeiPan.FeidanUrl + ";"; fpjgData = ServerFeiPan.xiaZhu_shunfen(xztj, qiHao, fpjgData); } else if (ServerFeiPan.ServerType.Equals("永利")) { fpjgData.isSuccess = true; fpjgData.serverUrl += ServerFeiPan.FeidanUrl + ";"; fpjgData = ServerFeiPan.xiaZhu_yongli(xztj, qiHao, fpjgData); } useServer = ServerFeiPan.ServerType + ServerFeiPan.LoginName; } foreach (ListViewItem item in lvSerState.Items) { item.SubItems[4].Text = "已停止"; } //重新遍历服务器列表 if (fpjgData.isSuccess == false) { //加载服务器 DataTable dtServer = SQLiteHelper.ExecuteDataTable("select * from fuwuqi_" + (String.IsNullOrWhiteSpace(Seq) ? CacheData.Seq : Seq), null); if (dtServer.Rows.Count > 0) { foreach (DataRow row in dtServer.Rows) { string _serverType = row["类型"].ToString(); string _serverUrl = row["服务器地址"].ToString(); string _userName = row["用户名"].ToString(); string _userPass = row["密码"].ToString(); if (_serverType.Equals(_serverType + _userName)) { function.log("提交失败:" + _serverType + _userName); continue; } if (_serverType.Equals("顺丰")) { ServerFeiPan.login(_serverUrl, _userName, _userPass, _serverType); if (ServerFeiPan.IsLoginSuccess == false && cbIsTryCon.Checked) { frmMessageTimer frmMessage = new frmMessageTimer("服务器" + _serverUrl + "不能使用"); frmMessage.Show(); Application.DoEvents(); } if (ServerFeiPan.IsLoginSuccess == true) { fpjgData = ServerFeiPan.xiaZhu_shunfen(xztj, qiHao, fpjgData); } } else if (_serverType.Equals("永利")) { ServerFeiPan.login(_serverUrl, _userName, _userPass, _serverType); if (ServerFeiPan.IsLoginSuccess == false && cbIsTryCon.Checked) { frmMessageTimer frmMessage = new frmMessageTimer("服务器" + _serverUrl + "不能使用"); frmMessage.Show(); Application.DoEvents(); } if (ServerFeiPan.IsLoginSuccess == true) { fpjgData = ServerFeiPan.xiaZhu_yongli(xztj, qiHao, fpjgData); } } // if (ServerFeiPan.IsLoginSuccess) { lblYuE.Text = ServerFeiPan.KeYongYuE.ToString(); lblServer.Text = ServerFeiPan.FeidanUrl; lblName.Text = ServerFeiPan.LoginName; lblState.Text = "使用中"; } else { lblYuE.Text = ServerFeiPan.KeYongYuE.ToString(); lblServer.Text = ServerFeiPan.FeidanUrl; lblName.Text = ServerFeiPan.LoginName; lblState.Text = "已停止"; } foreach (ListViewItem item in lvSerState.Items) { if (item.SubItems[2].Text.Equals(_serverUrl)) { item.SubItems[4].Text = ServerFeiPan.IsLoginSuccess ? "使用中" : "已停止"; } } // if (fpjgData.isSuccess) { break; } } } } } else { fpjgData = ServerCommon.SetFeiPanJieGuo(fpjgData, true); fpjgData.errorMessage = "未开启"; //关闭直接返回 return(fpjgData); } if (fpjgData.isSuccess == false) { playFaileSound(); if (cbStart.Checked && ServerFeiPan.IsLoginSuccess == false) { frmMessageTimer frmMessage = new frmMessageTimer("盘口可能坏了,请检查是否可用?"); frmMessage.Show(); cbStart.Checked = false; } } //for (int i = 0; i < 4; i++)//总和组合 //{ // fpjgData.ZHZHDXDS[i] = true; //} // //lblYuE.Text = fpjgData.yuE; //插入 feiPanJieGuoInsert(xztj, fpjgData, qiHao); //查询最新 chaXunZuiXin(); return(fpjgData); // //string result = HttpHelps.Post("", _feidanUrl + "/user/cql_cqsc_lm.aspx?t=all", // _webCookie, Encoding.Default); }
public static feiPanJieGuo xiaZhu(string url, CookieContainer webCookie, peilv peiLv, xztj xiaZhu, string qiHao, feiPanJieGuo fpjgData) { fpjgData.isSuccess = false; feiPanJieGuo fpjgDataTemp = new feiPanJieGuo(); int xiaZhuJiFen = 0; //获取余额 decimal yuE = getYuE(url, webCookie); try { int xiaZhuJiFen_Temp = 0; string transtring = ""; //212,,1,,1.9428,10; string arrstring = ""; //622:1:10; bool tiJiaoResult = false; #region 大小单双 transtring = ""; arrstring = ""; tiJiaoResult = false; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 5; i++)//大小单双 { for (int x = 0; x < 4; x++) { if (xiaZhu.DXDS[i, x] > 0 && fpjgData.DXDS[i, x] == false) { transtring += fpCanShu.DXDS[i, x].Replace("_", ",,") + ",," + peiLv.DXDS[i, x] + "," + xiaZhu.DXDS[i, x] + ";"; arrstring += fpCanShu.DXDS[i, x].Replace("_", ":") + ":" + xiaZhu.DXDS[i, x] + ";"; xiaZhuJiFen_Temp += xiaZhu.DXDS[i, x]; } } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (arrstring.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, transtring, arrstring); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 5; i++)//大小单双 { for (int x = 0; x < 4; x++) { fpjgData.DXDS[i, x] = true; fpjgDataTemp.DXDS[i, x] = true; } } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } #endregion 大小单双 #region 单球 for (int x = 0; x < 5; x++) { if (tiJiaoResult == true) { //提交成功继续 transtring = ""; arrstring = ""; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 5; i++) { if (xiaZhu.QD[x, i] > 0 && fpjgData.QD[x, i] == false) { transtring += fpCanShu.QD[x, i].Replace("_", ",,") + ",," + peiLv.QD[x, i] + "," + xiaZhu.QD[x, i] + ";"; arrstring += fpCanShu.QD[x, i].Replace("_", ":") + ":" + xiaZhu.QD[x, i] + ";"; xiaZhuJiFen_Temp += xiaZhu.QD[x, i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (arrstring.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, transtring, arrstring); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 5; i++) { fpjgData.QD[x, i] = true; fpjgDataTemp.QD[x, i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } if (tiJiaoResult == true) { //提交成功继续 transtring = ""; arrstring = ""; xiaZhuJiFen_Temp = 0; for (int i = 5; i < 10; i++) { if (xiaZhu.QD[x, i] > 0 && fpjgData.QD[x, i] == false) { transtring += fpCanShu.QD[x, i].Replace("_", ",,") + ",," + peiLv.QD[x, i] + "," + xiaZhu.QD[x, i] + ";"; arrstring += fpCanShu.QD[x, i].Replace("_", ":") + ":" + xiaZhu.QD[x, i] + ";"; xiaZhuJiFen_Temp += xiaZhu.QD[x, i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (arrstring.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, transtring, arrstring); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 5; i < 10; i++) { fpjgData.QD[x, i] = true; fpjgDataTemp.QD[x, i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } } #endregion 单球 #region 龙虎和 总和 if (tiJiaoResult == true) { //提交成功继续 transtring = ""; arrstring = ""; tiJiaoResult = false; xiaZhuJiFen_Temp = 0; for (int i = 0; i < 3; i++)//龙虎和 { if (xiaZhu.LHH[i] > 0 && fpjgData.LHH[i] == false) { transtring += fpCanShu.LHH[i].Replace("_", ",,") + ",," + peiLv.LHH[i] + "," + xiaZhu.LHH[i] + ";"; arrstring += fpCanShu.LHH[i].Replace("_", ":") + ":" + xiaZhu.LHH[i] + ";"; xiaZhuJiFen_Temp += xiaZhu.LHH[i]; } } for (int i = 0; i < 4; i++)//总和 总和组合 龙虎和 { if (xiaZhu.ZHDXDS[i] > 0 && fpjgData.ZHDXDS[i] == false) { transtring += fpCanShu.ZHDXDS[i].Replace("_", ",,") + ",," + peiLv.ZHDXDS[i] + "," + xiaZhu.ZHDXDS[i] + ";"; arrstring += fpCanShu.ZHDXDS[i].Replace("_", ":") + ":" + +xiaZhu.ZHDXDS[i] + ";"; xiaZhuJiFen_Temp += xiaZhu.ZHDXDS[i]; } } //提交数据 if (xiaZhuJiFen_Temp > yuE) { tiJiaoResult = false; fpjgData.isSuccess = false; fpjgData.errorMessage = "金额不足"; } else if (arrstring.Length > 0) { tiJiaoResult = postXiaZhu(url, webCookie, transtring, arrstring); if (tiJiaoResult == true) { //===================2018-02=================== //提交成功 fpjgDataTemp = new feiPanJieGuo(); for (int i = 0; i < 3; i++)//龙虎和 { fpjgData.LHH[i] = true; fpjgDataTemp.LHH[i] = true; } for (int i = 0; i < 4; i++)//总和 总和组合 龙虎和 { fpjgData.ZHDXDS[i] = true; fpjgDataTemp.ZHDXDS[i] = true; } xiaZhuJiFen += xiaZhuJiFen_Temp; yuE -= xiaZhuJiFen_Temp; function.FpLog(qiHao, xiaZhu, fpjgDataTemp); //===================2018-02=================== } else { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注失败"; } } else { tiJiaoResult = true;//x } } #endregion 龙虎和 总和 for (int i = 0; i < 4; i++)//总和组合 { fpjgData.ZHZHDXDS[i] = true; } // if (tiJiaoResult == true) { fpjgData.isSuccess = true; } else { } } catch (Exception ex) { fpjgData.isSuccess = false; fpjgData.errorMessage = "下注错误"; function.log("下注错误" + qiHao + " " + fpjgData.errorMessage); //提交失败 //fpjgData = ServerCommon.SetFeiPanJieGuo(fpjgData, false); throw ex; } // fpjgData.xiaZhu = xiaZhuJiFen.ToString(); return(fpjgData); }