diff --git a/bytedesk_demo/lib/main.dart b/bytedesk_demo/lib/main.dart index d5fe82f..2a9e54c 100644 --- a/bytedesk_demo/lib/main.dart +++ b/bytedesk_demo/lib/main.dart @@ -25,12 +25,11 @@ void main() { // 管理后台:https://www.bytedesk.com/antv/user/login // appkey和subDomain请替换为真实值 // 获取appkey,登录后台->客服管理->渠道管理->添加应用->appkey - String _androidKey = "66390193-b2c1-4edb-aa5f-50b1541059e8"; - String _iOSKey = "201809171553112"; + String _appKey = "45c513b8-0331-414c-8412-7e2cdfb3eb9f"; // 获取subDomain,也即企业号:登录后台->客服管理->客服账号->企业号 String _subDomain = "vip"; // 第一步:匿名登录 - BytedeskKefu.anonymousLogin(_androidKey, _iOSKey, _subDomain); + BytedeskKefu.anonymousLogin(_appKey, _subDomain); } class MyApp extends StatefulWidget { diff --git a/bytedesk_demo/pubspec.yaml b/bytedesk_demo/pubspec.yaml index 110fe90..2a00d8f 100644 --- a/bytedesk_demo/pubspec.yaml +++ b/bytedesk_demo/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: # 请在ios/Podfile中添加:use_frameworks! vibration: ^1.7.2 # https://pub.dev/packages/bytedesk_kefu - bytedesk_kefu: ^0.3.8 + bytedesk_kefu: ^0.4.0 # The following adds the Cupertino Icons font to your application.