开心网外挂之争车位之发起比赛

2022-10-02 16:14:52 浏览数 (3)

大家好,又见面了,我是你们的朋友全栈君。

public void lalisai_KaiShiBiSai(string id) { AccessHelper AH = new AccessHelper(); KaiXinHelper KH = new KaiXinHelper(); DataTable dt =AH.GetDataTable(“select id,email,pwd,lailiflag,username from G_KaiXin_B where id='” id ”‘ and laliisqidong=1 order by id”); foreach (DataRow row in dt.Rows) { try { string url = “”; string verify = “”; url = “http://www.kaixin001.com/!parking/myteam.php“; WebResponse response =KH.doGet(url); string abc = KH.ResponseToString(response);

Regex regex = new Regex(“g_verify//s*=//s*/”(?<value>. )/”;”); Match match = regex.Match(abc); //设置核实身份的值 verify = match.Groups[“value”].Value; regex = new Regex(“href=/”javascript:matchDetail((?<value>. ));/” class=/”sl/”>查看比赛详情”); match = regex.Match(abc); string teamid = match.Groups[“value”].Value.Replace(“(“, “”).Replace(“)”, “”);

string[] arr = teamid.Split(‘,’); if (arr.Length == 2) { url = “http://www.kaixin001.com/!parking/match.php?matchuid=” arr[0] “&matchid=” arr[1]; response = KH.doGet(url); abc = KH.ResponseToString(response); if (abc.IndexOf(“你的车队今天已经启动”) != -1) { ; } else { regex = new Regex(“javascript:teamBegin((?<value>. ));/” class=/”qd/”>启动赛车”); match = regex.Match(abc); teamid = match.Groups[“value”].Value.Replace(“(“, “”).Replace(“)”, “”);

arr = teamid.Split(‘,’); if (arr.Length == 2) { url = “http://www.kaixin001.com/parking/teambegin.php?verify=” verify “&teamuid=” arr[0] “&teamid=” arr[1]; response = KH.doGet(url); //abc = KH.ResponseToString(response); //int a = abc.IndexOf(“<div id=action0 style=/”display:block/”>”); //if (abc.IndexOf(“<div id=action0 style=/”display:block/”>”) != -1) //{ //} //else //{ //} } } } } catch { } } }

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/196996.html原文链接:https://javaforall.cn

1 人点赞