From 9e4633aa3269bca759e0b596de247c1ae72b03d1 Mon Sep 17 00:00:00 2001 From: jackning <270580156@qq.com> Date: Thu, 7 Jan 2021 20:42:41 +0800 Subject: [PATCH] update 0.4.0 --- bytedesk_demo/lib/main.dart | 5 ++--- bytedesk_demo/pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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.