get daily task status. @return jsonObject 返回status对象 @value {"login":true,"watch":true,"coins":50,"share":true,"email":true,"tel":true,"safe_question":true,"identify_card":false} @author @srcrs
()
| 49 | * @author @srcrs |
| 50 | */ |
| 51 | public static JsonObject getDailyTaskStatus() { |
| 52 | JsonObject jsonObject = HttpUtils.doGet(ApiList.REWARD); |
| 53 | int responseCode = jsonObject.get(STATUS_CODE_STR).getAsInt(); |
| 54 | if (responseCode == 0) { |
| 55 | log.info("请求本日任务完成状态成功"); |
| 56 | return jsonObject.get("data").getAsJsonObject(); |
| 57 | } else { |
| 58 | log.warn(jsonObject.get("message").getAsString()); |
| 59 | return HttpUtils.doGet(ApiList.REWARD).get("data").getAsJsonObject(); |
| 60 | //偶发性请求失败,再请求一次。 |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | public void doDailyTask() { |
| 65 | try { |