global.dart 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 String gkRsaPublicKey = """
  52. -----BEGIN PUBLIC KEY-----
  53. MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALltnyc4QcGMQ7/ZT+xmV6x/OXdJ2k5ftatsES9XlScM
  54. fPgs/mANKCixDwNFOIAFvTnKUvGgxVhBXpFL8Ma/J0cCAwEAAQ==
  55. -----END PUBLIC KEY-----
  56. """;
  57. ///国康RSA加密密钥长度
  58. final int gkRsaKeyBitLength = 512;