ltc 1 year ago
parent
commit
b3da644901
2 changed files with 6 additions and 3 deletions
  1. 4 3
      lib/models/config.dart
  2. 2 0
      lib/pages/home_page.dart

+ 4 - 3
lib/models/config.dart

@@ -1,6 +1,7 @@
 class Config {
-  static const String appKey = "10b0d942f5e54aceae0fd6b6e89a443a";
-  static const String userId = "10b0d942f5e54aceae0fd6b6e89a443a";
+  // https://console.agora.io/project/uLnhysNlv/extension?id=Chat
+  static const String appKey = "61138750#1136787";
+  static const String userId = "123aaa";
   static const String agoraToken =
-      "007eJxTYOgxm6r5zfPY9/knxZJeTftuusch35B7e+z8pSLVha79cfcUGAwNkgxSLE2M0kxTTU0Sk1MTUw3SUsySzFItLBNNTIwTr/6vSGkIZGS4+befmZEBAkF8JoZkQwYGAHrTIPc=";
+      "007eJxTYLhnva5Ylkdu3aryrwcmqD/TmyJ0L4PX/ayQRWhecL9hxl4FBkODJIMUSxOjNNNUU5PE5NTEVIO0FLMks1QLy0QTE+NEO/bqlIZARoZn028zMzKwMjACIYivwpBmlphoaWpooGtgmJqma2iYmqqbZG5hqmtkaW5kbmmWZppkaAwA+cwmFQ==";
 }

+ 2 - 0
lib/pages/home_page.dart

@@ -41,6 +41,7 @@ class _HomePageState extends State<HomePage> {
           mainAxisSize: MainAxisSize.max,
           children: [
             const SizedBox(height: 10),
+            const Text("login appKey: ${Config.appKey}"),
             const Text("login userId: ${Config.userId}"),
             const Text("agoraToken: ${Config.agoraToken}"),
             const SizedBox(height: 10),
@@ -125,6 +126,7 @@ class _HomePageState extends State<HomePage> {
     );
   }
 
+  /// login
   void _signIn() async {
     try {
       await ChatClient.getInstance.loginWithAgoraToken(