Commit 005587c7 by tanghuan

打开IM开关,取消加群和退群的代码注释,调整群组Http请求的参数名

1 parent e38f11fb
...@@ -452,7 +452,7 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver { ...@@ -452,7 +452,7 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
imService.registerPush(); imService.registerPush();
// 处理加群和退群 // 处理加群和退群
if (state.loginOpFlag) { if (state.loginOpFlag) {
// imService.joinAndLeaveGroup(state.userCode!); imService.joinAndLeaveGroup(state.userCode!);
} }
} else { } else {
debugPrint("缓存自动登录处,IM 登录失败"); debugPrint("缓存自动登录处,IM 登录失败");
......
...@@ -122,6 +122,6 @@ class Constant { ...@@ -122,6 +122,6 @@ class Constant {
static const String hasShownPrivacyFirstTimeKey = 'has_shown_privacy_first_time'; static const String hasShownPrivacyFirstTimeKey = 'has_shown_privacy_first_time';
/// 测试阶段使用 /// 测试阶段使用
static const bool needIM = false; static const bool needIM = true;
static const bool needUpgrade = true; static const bool needUpgrade = true;
} }
...@@ -18,7 +18,7 @@ class SubsRepository { ...@@ -18,7 +18,7 @@ class SubsRepository {
{ {
"type": type, "type": type,
"userid": userid, "userid": userid,
"classCode": classCode, "classCodes": classCode,
}, },
); );
return resp.statusCode == HttpStatus.ok ? resp.data : null; return resp.statusCode == HttpStatus.ok ? resp.data : null;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!