@@ -18,6 +18,7 @@ import 'package:zhiying_base_widget/utils/mob_push_util.dart'; | |||||
import 'package:zhiying_business_college/register.dart'; | import 'package:zhiying_business_college/register.dart'; | ||||
import 'package:zhiying_new_user_free/register.dart'; | import 'package:zhiying_new_user_free/register.dart'; | ||||
import 'package:zhiying_wechat_teacher/register.dart'; | import 'package:zhiying_wechat_teacher/register.dart'; | ||||
import 'package:zhiying_moments/register.dart'; | |||||
void main() { | void main() { | ||||
FlutterError.onError = (FlutterErrorDetails details) { | FlutterError.onError = (FlutterErrorDetails details) { | ||||
@@ -55,6 +56,7 @@ class _MyAppState extends State<MyApp> { | |||||
BusinessCollageRegister.init(); | BusinessCollageRegister.init(); | ||||
NewUserFreeRegister.init(); | NewUserFreeRegister.init(); | ||||
WeChatTeachRegister.init(); | WeChatTeachRegister.init(); | ||||
FriendCircleRegister.init(); | |||||
print('初始化百川'); | print('初始化百川'); | ||||
FlutterAlibc.initAlibc(version: "", appName: "").then((result) { | FlutterAlibc.initAlibc(version: "", appName: "").then((result) { | ||||
print("白川" + '${result.errorCode} ${result.errorMessage}'); | print("白川" + '${result.errorCode} ${result.errorMessage}'); | ||||
@@ -34,6 +34,12 @@ dev_dependencies: | |||||
git: | git: | ||||
ref: 0.0.1+1 | ref: 0.0.1+1 | ||||
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_wechat_teacher.git | 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 | # For information on the generic Dart part of this file, see the | ||||
# following page: https://dart.dev/tools/pub/pubspec | # following page: https://dart.dev/tools/pub/pubspec | ||||
@@ -20,11 +20,15 @@ class IntellectCreate { | |||||
///判断规则 | ///判断规则 | ||||
static checkAndCreate(AppLifecycleState state, BuildContext context) async { | static checkAndCreate(AppLifecycleState state, BuildContext context) async { | ||||
if (state == AppLifecycleState.resumed && !isRequest) { | |||||
if (state == AppLifecycleState.resumed && !isRequest) { | |||||
print("读取粘贴版"); | |||||
isRequest = true; | isRequest = true; | ||||
Timer(Duration(milliseconds: 2000), () { | |||||
isRequest = false; | |||||
}); | |||||
try { | try { | ||||
await _requestSetData(context); | |||||
await _requestSetData(context); | |||||
} catch (e, s) { | } catch (e, s) { | ||||
isRequest = false; | isRequest = false; | ||||
print(e); | print(e); | ||||
@@ -77,7 +81,7 @@ class IntellectCreate { | |||||
static checkAndCreateFirst(BuildContext context) async { | static checkAndCreateFirst(BuildContext context) async { | ||||
///检查规则 | ///检查规则 | ||||
await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); | |||||
await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); | |||||
} | } | ||||
///请求数据打开弹窗 | ///请求数据打开弹窗 | ||||
@@ -66,7 +66,6 @@ class _SearchResultContianerState extends State<SearchResultContianer> { | |||||
if (current is SearchResultErrorState) { | if (current is SearchResultErrorState) { | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
}, | }, | ||||
builder: (context, state) { | builder: (context, state) { | ||||