MCPcopy Create free account
hub / github.com/OreosLab/bili / queryContestQuestion

Method queryContestQuestion

src/main/java/top/misec/task/MatchGame.java:116–132  ·  view source on GitHub ↗
(String today, int pn, int ps)

Source from the content-addressed store, hash-verified

114
115
116 private JsonObject queryContestQuestion(String today, int pn, int ps) {
117 String gid = "";
118 String sids = "";
119 String urlParam = "";
120 try {
121 urlParam = "?pn=" + pn
122 + "&ps=" + ps
123 + "&gid=" + gid
124 + "&sids=" + sids
125 + "&stime=" + today + URLEncoder.encode(" 00:00:00", "UTF-8")
126 + "&etime=" + today + URLEncoder.encode(" 23:59:59", "UTF-8");
127 } catch (Exception ignored) {
128
129 }
130
131 return HttpUtils.doGet(ApiList.QUERY_QUESTIONS + urlParam);
132 }
133
134 private void doPrediction(int oid, int main_id, int detail_id, int count) {
135 String requestbody = "oid=" + oid

Callers 1

runMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by

no test coverage detected