This commit is contained in:
FongMi 2023-06-04 12:18:29 +08:00
parent ca6ce22dd5
commit 3087df401a
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package com.github.catvod.spider;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.Base64;
import android.view.Gravity;
import android.widget.FrameLayout;
@ -43,7 +44,7 @@ public class Notice extends Spider {
@Override
public String homeContent(boolean filter) throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault());
String json = OkHttp.string(extend);
String json = extend.startsWith("http") ? OkHttp.string(extend) : new String(Base64.decode(extend, Base64.DEFAULT));
JSONObject object = new JSONObject(json);
msg = object.optString("msg");
duration = object.optInt("duration", 30);

Binary file not shown.

View File

@ -1 +1 @@
de1f015757b7830650e7ee50963a1e0b
83302c0b9c22927f527219dc290dc6ad