diff --git a/example/lib/main.dart b/example/lib/main.dart index b42441b..b7579bd 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -18,6 +18,7 @@ import 'package:zhiying_base_widget/utils/mob_push_util.dart'; import 'package:zhiying_business_college/register.dart'; import 'package:zhiying_new_user_free/register.dart'; import 'package:zhiying_wechat_teacher/register.dart'; +import 'package:zhiying_moments/register.dart'; void main() { FlutterError.onError = (FlutterErrorDetails details) { @@ -55,6 +56,7 @@ class _MyAppState extends State { BusinessCollageRegister.init(); NewUserFreeRegister.init(); WeChatTeachRegister.init(); + FriendCircleRegister.init(); print('初始化百川'); FlutterAlibc.initAlibc(version: "", appName: "").then((result) { print("白川" + '${result.errorCode} ${result.errorMessage}'); diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d4c6af1..353f151 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -34,6 +34,12 @@ dev_dependencies: git: ref: 0.0.1+1 url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_wechat_teacher.git + #朋友圈 + zhiying_moments: + #path: ../zhiying_moments + git: + ref: 0.0.4 + url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart index c2ad937..73b0a36 100644 --- a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart +++ b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart @@ -20,11 +20,15 @@ class IntellectCreate { ///判断规则 static checkAndCreate(AppLifecycleState state, BuildContext context) async { - if (state == AppLifecycleState.resumed && !isRequest) { + if (state == AppLifecycleState.resumed && !isRequest) { + print("读取粘贴版"); isRequest = true; + Timer(Duration(milliseconds: 2000), () { + isRequest = false; + }); try { - await _requestSetData(context); + await _requestSetData(context); } catch (e, s) { isRequest = false; print(e); @@ -77,7 +81,7 @@ class IntellectCreate { static checkAndCreateFirst(BuildContext context) async { ///检查规则 - await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); + await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); } ///请求数据打开弹窗 diff --git a/lib/pages/search_result_page/search_result_page.dart b/lib/pages/search_result_page/search_result_page.dart index 32a493c..818ed33 100644 --- a/lib/pages/search_result_page/search_result_page.dart +++ b/lib/pages/search_result_page/search_result_page.dart @@ -66,7 +66,6 @@ class _SearchResultContianerState extends State { if (current is SearchResultErrorState) { return false; } - return true; }, builder: (context, state) {