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

Method doPrediction

src/main/java/top/misec/task/MatchGame.java:134–150  ·  view source on GitHub ↗
(int oid, int main_id, int detail_id, int count)

Source from the content-addressed store, hash-verified

132 }
133
134 private void doPrediction(int oid, int main_id, int detail_id, int count) {
135 String requestbody = "oid=" + oid
136 + "&main_id=" + main_id
137 + "&detail_id=" + detail_id
138 + "&count=" + count
139 + "&is_fav=0"
140 + "&csrf=" + ConfigLoader.helperConfig.getBiliVerify().getBiliJct();
141
142 JsonObject result = HttpUtils.doPost(ApiList.DO_MATCH_ADD, requestbody);
143
144 if (result.get("code").getAsInt() != 0) {
145 log.info(result.get("message").getAsString());
146 } else {
147 log.info("预测成功");
148 }
149
150 }
151
152 private String getTime() {
153 Date d = new Date();

Callers 1

runMethod · 0.95

Calls 2

doPostMethod · 0.95
getBiliJctMethod · 0.80

Tested by

no test coverage detected