| 12345678910111213141516171819 |
- /// 七陌客服 H5 接入
- ///
- /// 已从原生 SDK 迁移为 H5 WebView 方案,修复 iOS Debug 模式下的 crash 问题
- class CustomerService {
- /// H5 模式下始终可用(不再区分真机/模拟器,两端都支持 WebView)
- static Future<bool> isDeviceAvailable() async {
- return true;
- }
- /// startChat 逻辑已移至 lib/providers/customer_service_provider.dart
- /// 现在通过 WebView 方式展示客服对话框
- @Deprecated('使用 openCustomerService(context, ref) 替代')
- static Future<void> startChat({
- required String userName,
- required String userId,
- }) async {
- // 此方法已弃用,客服功能通过 WebView 实现
- }
- }
|