Add appId empty check

This commit is contained in:
iKirby
2025-05-06 16:56:13 +08:00
parent 26bca6df64
commit 9ce74beda5

View File

@@ -89,7 +89,7 @@ class VivoAppStore extends AppSource {
String parseVivoAppId(String url) {
var appId = Uri.parse(url.replaceAll('/#', '')).queryParameters['appId'];
if (appId == null) {
if (appId == null || appId.isEmpty) {
throw InvalidURLError(name);
}
return appId;