global.dart 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import 'package:eitc_erm_dental_flutter/funcs.dart';
  2. import 'package:flutter/services.dart';
  3. import 'package:image/image.dart';
  4. ///设备WIFI前缀,固定的
  5. const String deviceWifiPrefix = "mlg_";
  6. ///Flavor慧视健康
  7. const String flavorHsjk = "hsjk";
  8. ///Flavor慧视通
  9. const String flavorHst = "hst";
  10. ///慧视健康IOS appid
  11. const String _iosAppIdHsjk = "6737254914";
  12. ///慧视通IOS appid
  13. const String _iosAppIdHst = "00000000";
  14. ///IOS的appid,默认返回慧视健康的
  15. String get iosAppId {
  16. if (isHst) {
  17. return _iosAppIdHst;
  18. } else {
  19. return _iosAppIdHsjk;
  20. }
  21. }
  22. ///上传接口appid
  23. const String uploadApplicationKey = "GK-KQJ";
  24. ///上传接口文件类型
  25. const String uploadFileType = "oral_mirror_image";
  26. ///Token
  27. String _token = "";
  28. ///Token
  29. String get token => _token;
  30. ///是否有token
  31. bool get hasToken => token.isNotEmpty;
  32. ///更新Token
  33. void updateToken(String str) {
  34. _token = str;
  35. }
  36. ///是否正在同步咨询人数据
  37. bool isSyncingPatient = false;
  38. ///选择的咨询人ID
  39. int selectedPatientId = -1;
  40. ///照片字体
  41. BitmapFont? photoFont;
  42. ///视频channel名字
  43. const String _videoChannelName = "videoControl";
  44. ///文件channel名字
  45. const String _fileChannelName = "fileControl";
  46. ///视频channel
  47. final MethodChannel videoChannel = const MethodChannel(_videoChannelName);
  48. ///文件channel
  49. final MethodChannel fileChannel = const MethodChannel(_fileChannelName);
  50. ///国康RSA加密密钥长度
  51. final int gkRsaKeyBitLength = 512;
  52. ///国康在线问诊RSA加密公钥
  53. final String gkOnlineConsultationRsaPublicKey = """
  54. -----BEGIN PUBLIC KEY-----
  55. MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALltnyc4QcGMQ7/ZT+xmV6x/OXdJ2k5ftatsES9XlScM
  56. fPgs/mANKCixDwNFOIAFvTnKUvGgxVhBXpFL8Ma/J0cCAwEAAQ==
  57. -----END PUBLIC KEY-----
  58. """;
  59. ///国康在线问诊appID
  60. final String gkOnlineConsultationAppId = "AqC4SNnS3dvYKBYn";
  61. ///国康在线问诊baseUrl测试环境
  62. final String urlGkOnlineConsultationBaseUrlTest =
  63. "https://app.hchina.com/test/gzkj/web/authentication/";
  64. ///国康在线问诊baseUrl生产环境
  65. final String urlGkOnlineConsultationBaseUrl =
  66. "https://app.hchina.com/gzkj/web/authentication/";