import 'package:flutter/services.dart'; import 'package:fluwx/fluwx.dart'; import 'package:image/image.dart'; ///设备WIFI前缀,固定的 const String deviceWifiPrefix = "mlg_"; ///Flavor慧视健康 const String flavorHsjk = "hsjk"; ///Flavor慧视通 const String flavorHst = "hst"; ///IOS的appid,默认返回慧视健康的 String get iosAppId => switch (appFlavor) { flavorHst => "00000000", _ => "6737254914" }; ///上传接口appid const String uploadApplicationKey = "GK-KQJ"; ///上传接口文件类型 const String uploadFileType = "oral_mirror_image"; ///Token String _token = ""; ///Token String get token => _token; ///是否有token bool get hasToken => token.isNotEmpty; ///更新Token void updateToken(String str) { _token = str; } ///是否正在同步咨询人数据 bool isSyncingPatient = false; ///选择的咨询人ID int selectedPatientId = -1; ///照片字体 BitmapFont? photoFont; ///视频channel名字 const String _videoChannelName = "videoControl"; ///文件channel名字 const String _fileChannelName = "fileControl"; ///视频channel final MethodChannel videoChannel = const MethodChannel(_videoChannelName); ///文件channel final MethodChannel fileChannel = const MethodChannel(_fileChannelName); ///国康RSA加密公钥 final String gkRsaPublicKey = """ -----BEGIN PUBLIC KEY----- MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALltnyc4QcGMQ7/ZT+xmV6x/OXdJ2k5ftatsES9XlScM fPgs/mANKCixDwNFOIAFvTnKUvGgxVhBXpFL8Ma/J0cCAwEAAQ== -----END PUBLIC KEY----- """; ///国康RSA加密密钥长度 final int gkRsaKeyBitLength = 512; ///Fluwx实例 final Fluwx fluwx = Fluwx(); ///微信APPid String get wxAppId => switch (appFlavor) { _ => "" }; ///微信SDK使用的IOS的universalLink String get wxUniversalLink => switch (appFlavor) { _ => "" }; ///医院小程序ID String get hospitalMiniProgramId => switch (appFlavor) { _ => "gh_ec8e805a6e13" }; ///医院小程序路径 String? get hospitalMiniProgramPath => switch (appFlavor) { _ => "index/index?page=BRANCH&id=207001" };