opt: 代码优化
This commit is contained in:
@ -34,7 +34,7 @@ class ContentContainer extends StatelessWidget {
|
||||
child: contentWidget!,
|
||||
)
|
||||
else
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
if (bottomWidget != null) bottomWidget!,
|
||||
],
|
||||
),
|
||||
|
@ -15,7 +15,7 @@ class HtmlHttp {
|
||||
Match match = regex.firstMatch(response.data)!;
|
||||
String matchedString = match.group(0)!;
|
||||
response = await Request().get(
|
||||
'https:$matchedString' + '/',
|
||||
'https:$matchedString/',
|
||||
extra: {'ua': 'pc'},
|
||||
);
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import 'package:cookie_jar/cookie_jar.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:dio/io.dart';
|
||||
import 'package:dio_cookie_manager/dio_cookie_manager.dart';
|
||||
import 'package:dio_http2_adapter/dio_http2_adapter.dart';
|
||||
// import 'package:dio_http2_adapter/dio_http2_adapter.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import '../utils/storage.dart';
|
||||
import '../utils/utils.dart';
|
||||
|
@ -210,11 +210,11 @@ class _WhisperPageState extends State<WhisperPage> {
|
||||
);
|
||||
} else {
|
||||
// 请求错误
|
||||
return SizedBox();
|
||||
return const SizedBox();
|
||||
}
|
||||
} else {
|
||||
// 骨架屏
|
||||
return SizedBox();
|
||||
return const SizedBox();
|
||||
}
|
||||
},
|
||||
)
|
||||
|
@ -80,7 +80,7 @@ class WbiSign {
|
||||
String getMixinKey(String orig) {
|
||||
String temp = '';
|
||||
for (int i = 0; i < mixinKeyEncTab.length; i++) {
|
||||
temp += orig.split('')[mixinKeyEncTab[i] as int];
|
||||
temp += orig.split('')[mixinKeyEncTab[i]];
|
||||
}
|
||||
return temp.substring(0, 32);
|
||||
}
|
||||
|
Reference in New Issue
Block a user