This commit is contained in:
FongMi 2023-06-04 12:18:29 +08:00
parent 1e4e1989e1
commit e2f6e5a14e
4 changed files with 5 additions and 4 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

View File

@ -1,5 +1,5 @@
{
"msg": "",
"date": "20230607180000",
"msg": "FongMi 天下第一",
"date": "20230604000000",
"duration": 10
}