Clean code

This commit is contained in:
FongMi 2023-05-30 11:32:40 +08:00
parent a60e9dc323
commit c19fe4bcb9
3 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class Notice extends Spider {
@Override @Override
public void init(Context context, String extend) { public void init(Context context, String extend) {
super.init(context, extend); super.init(context, extend);
String[] splits = extend.split("#"); String[] splits = extend.split(";");
String text = splits[0]; String text = splits[0];
int duration = splits.length > 1 ? Integer.parseInt(splits[1]) : 30; int duration = splits.length > 1 ? Integer.parseInt(splits[1]) : 30;
Init.run(() -> createView(text, duration)); Init.run(() -> createView(text, duration));

Binary file not shown.

View File

@ -1 +1 @@
00525bd9b7eaf9976bac9fa981c9bcda e18bc0418a1fe5f288275132c9d719b3