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

Method isCoinAdded

src/main/java/top/misec/task/CoinAdd.java:35–41  ·  view source on GitHub ↗

检查是否投币. @param bvid av号 @return 返回是否投过硬币了. true没有投币,false投过了。

(String bvid)

Source from the content-addressed store, hash-verified

33 * @return 返回是否投过硬币了. true没有投币,false投过了。
34 */
35 static boolean isCoinAdded(String bvid) {
36 String urlParam = "?bvid=" + bvid;
37 JsonObject result = HttpUtils.doGet(ApiList.IS_COIN + urlParam);
38
39 int multiply = result.getAsJsonObject("data").get("multiply").getAsInt();
40 return multiply <= 0;
41 }
42
43 @Override
44 public void run() {

Callers 2

coinAddMethod · 0.95
videoUpdateMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by

no test coverage detected