1.优化print为debugPrint
This commit is contained in:
parent
15321c4d61
commit
d9c2a52070
|
|
@ -1,5 +1,6 @@
|
|||
import 'dart:io';
|
||||
import 'package:dio/io.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:get/get.dart' as getx;
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:wgshare/common/api/retrofit_client.dart';
|
||||
|
|
@ -147,7 +148,7 @@ class TheError extends Interceptor {
|
|||
break;
|
||||
case DioExceptionType.badResponse:
|
||||
if (err.response == null) {
|
||||
print('请求进入异常但是请求response');
|
||||
debugPrint('请求进入异常但是请求response');
|
||||
} else {
|
||||
Response? response = err.response;
|
||||
if (response != null) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:wgshare/common/mixins/request_tool_mixin.dart';
|
||||
import 'package:wgshare/common/store/app_storage_key.dart';
|
||||
|
|
@ -23,7 +24,7 @@ class UserStore extends GetxController with RequestToolMixin {
|
|||
userInfoEntity.value = UserInfoEntity.fromJson(userDetail);
|
||||
}
|
||||
} catch (err) {
|
||||
print('$err');
|
||||
debugPrint('$err');
|
||||
StorageService.to.remove(AppStorageKey.userInfo.value);
|
||||
}
|
||||
if ((token?.isNotEmpty ?? false) && userInfoEntity.value != null) {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class MyApp extends StatelessWidget {
|
|||
getPages: AppPages.pages,
|
||||
routingCallback: (routing) {
|
||||
String? currentRouter = routing?.current;
|
||||
print("当前路由:${routing?.current}");
|
||||
debugPrint("当前路由:${routing?.current}");
|
||||
},
|
||||
builder: EasyLoading.init(
|
||||
builder: (context, child) {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
HttpConnectionOptions(
|
||||
transport: HttpTransportType.longPolling,
|
||||
accessTokenFactory: () async => await Future.value(UserStore.to.token),
|
||||
logging: (level, message) => print("SignalR Socket:$message"),
|
||||
logging: (level, message) => debugPrint("SignalR Socket:$message"),
|
||||
)).build();
|
||||
|
||||
await state.hubConnection.value?.start();
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class MeetingMainVideoComponent extends StatelessWidget {
|
|||
pageSnapping: true,
|
||||
onPageChanged: (index) {
|
||||
// 监听事件
|
||||
print('index=====$index');
|
||||
debugPrint('index=====$index');
|
||||
},
|
||||
children: <Widget>[
|
||||
Container(
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ Widget $theCachedNetworkImage(ImageWidgetBuilder imageBuilder, {required String
|
|||
// placeholder: (context, url) => const CircularProgressIndicator(),
|
||||
placeholder: (context, url) => Center(child: SpinKitWave(color: Theme.of(context).primaryColor, size: 50.r)),
|
||||
errorListener: (e) {
|
||||
print('图片报错.............$e');
|
||||
debugPrint('图片报错.............$e');
|
||||
},
|
||||
errorWidget: (context, url, error) {
|
||||
return GestureDetector(
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class VideoButton extends HookWidget {
|
|||
});
|
||||
|
||||
useEffect(() {
|
||||
// print("进入这里了 ${isPlayState.value} 初始值:$isPlay");
|
||||
// debugPrint("进入这里了 ${isPlayState.value} 初始值:$isPlay");
|
||||
|
||||
return () {};
|
||||
}, []);
|
||||
|
|
|
|||
Loading…
Reference in New Issue