opt: resCode, post panel

fix: bangumi panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-25 20:47:05 +08:00
parent bae395c5d0
commit 2fc4760269
12 changed files with 329 additions and 404 deletions

View File

@@ -26,6 +26,11 @@ import 'package:url_launcher/url_launcher.dart';
class Utils {
static final Random random = Random();
static bool isStringNumeric(str) {
RegExp numericRegex = RegExp(r'^\d+$');
return numericRegex.hasMatch(str.toString());
}
static ReplyInfo replyCast(res) {
Map? emote = res['content']['emote'];
emote?.forEach((key, value) {