洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
9.7 KiB

8 months ago
  1. //
  2. // DTFErrorCodeConfig.h
  3. // DTFUtility
  4. //
  5. // Created by 汪澌哲 on 2023/2/1.
  6. // Copyright © 2023 com.DTF.iphoneclient.zoloz. All rights reserved.
  7. //
  8. #ifndef DTFErrorCodeConfig_h
  9. #define DTFErrorCodeConfig_h
  10. #endif /* DTFErrorCodeConfig_h */
  11. static NSString *const kDTFSystemFailedErrorCode = @"Z1000";
  12. static NSString *const kDTFSystemFailedErrorMessage = @"";
  13. static NSString *const kBioAuthEngineSystemFailedErrorMessage = @"抱歉,系统出错了,请您稍后再试(Z1000)";
  14. static NSString *const kBioAuthEngineSystemFailedErrorReason = @"协议base64解析失败";
  15. static NSString *const kDTFDenyCameraPermissionErrorCode = @"Z1001";
  16. static NSString *const kDTFDenyCameraPermissionErrorMessage = @"";
  17. static NSString *const kAPBDenyCameraPermissionErrorMessage = @"拒绝开通授权";
  18. static NSString *const kDTFUnableStartCameraErrorCode = @"Z1002";
  19. static NSString *const kDTFUnableStartCameraErrorMessage = @"无法启动相机(Z1002)";
  20. static NSString *const kDTFUnableStartCameraErrorReason = @"无法启动相机";
  21. static NSString *const kDTFOldVersionErrorCode = @"Z1004";
  22. static NSString *const kDTFOldVersionErrorMessage = @"iOS系统版本过低(Z1004)";
  23. static NSString *const kDTFOldVersionErrorReason = @"iOS系统版本过低";
  24. static NSString *const kDTFOperationTimeoutErrorCode = @"Z1005";
  25. static NSString *const kDTFOperationTimeoutErrorMessage = @"操作超时(Z1005)";
  26. static NSString *const kDTFOperationFailedErrorCode = @"Z1006";
  27. static NSString *const kDTFOperationFailedErrorMessage = @"本次操作失败(Z1006)";
  28. static NSString *const kDTFLocalAuthenticationFailedErrorCode = @"Z1007";
  29. static NSString *const kDTFLocalAuthenticationFailedErrorMessage = @"";
  30. static NSString *const kDTFActivelyExitErrorCode = @"Z1008";
  31. static NSString *const kDTFActivelyExitErrorMessage = @"用户主动退出(Z1008)";
  32. static NSString *const kDTFActivelyExitErrorReason = @"用户主动退出";
  33. static NSString *const kDTFVerificationInterruptErrorCode = @"Z1009";
  34. static NSString *const kDTFVerificationInterruptErrorMessage = @"验证中断(Z1009)";
  35. static NSString *const kDTFNotVerifyTemporarilyErrorCode = @"Z1009";
  36. static NSString *const kDTFNotVerifyTemporarilyErrorMessage = @"用户暂不认证(Z1009)";
  37. static NSString *const kNotVerifyTemporarilyReason = @"用户暂不认证";
  38. static NSString *const kGuideViewLoadFailedErrorCode = @"2002";
  39. static NSString *const kGuideViewLoadFailedErrorMessage = @"引导页加载失败";
  40. static NSString *const kGuideViewLoadFailedReason = @"网络错误";
  41. static NSString *const kDTFParameterFailedErrorCode = @"Z1010";
  42. static NSString *const kDTFParameterFailedErrorMessage = @"业务参数错误(Z1010)";
  43. static NSString *const kDTFParameterFailedErrorReason = @"currentCtr isEmpty";
  44. static NSString *const kDTFInitFailedErrorCode = @"Z1012";
  45. static NSString *const kDTFInitFailedErrorMessage = @"";
  46. static NSString *const kDTFAlgorithmInitFailedErrorCode = @"Z1014";
  47. static NSString *const kDTFAlgorithmInitFailedErrorMessage = @"(Z1014)";
  48. static NSString *const kDTFOpenCameraFailedErrorCode = @"Z1020";
  49. static NSString *const kDTFOpenCameraFailedErrorMessage= @"(Z1020)";
  50. static NSString *const kDTFModelFileErrorCode = @"Z1023";
  51. static NSString *const kDTFModelFileErrorMessage = @"(Z1023)";
  52. static NSString *const kDTFZimBusyErrorCode = @"Z1024";
  53. static NSString *const kDTFZimBusyErrorMessage = @"(Z1024)";
  54. static NSString *const kDTFZimBusyErrorReason = @"认证进行中重复调用认证";
  55. static NSString *const kDTFProcessInterruptionErrorCode = @"Z1025";
  56. static NSString *const kDTFProcessInterruptionErrorMessage = @"流程被中断(Z1025)";
  57. static NSString *const kDTUploadImageFailedErrorCode = @"Z1026";
  58. static NSString *const kDTFUploadImageFailedErrorMessage = @"";
  59. static NSString *const kDTFVerifyFailedErrorCode = @"Z1027";
  60. static NSString *const kDTFVerifyFailedErrorMessage = @"网络不给力(Z1027)";
  61. static NSString *const kDTFVerifyLimitFailedErrorCode = @"Z1028";
  62. static NSString *const kDTFVerifyLimitFailedErrorMessage = @"网络错误(network error)(2002)";
  63. static NSString *const kDTFMultiFactorFacadeVersionNotSupportedErrorCode = @"Z1029";
  64. static NSString *const kDTFMultiFactorFacadeVersionNotSupportedErrorMessage = @"网络错误(network error)(2002)";
  65. static NSString *const kDTFRecordingPermissionErrorCode = @"Z1030";
  66. static NSString *const kDTFRecordingPermissionErrorMessage = @"录音权限未赋予(Z1030)";
  67. static NSString *const kDTFRecordingPermissionErrorReason = @"录音权限未赋予";
  68. static NSString *const kDTFReplayKitPermissionErrorCode = @"Z1031";
  69. static NSString *const kDTFReplayKitPermissionErrorMessage = @"录屏权限未赋予(Z1031)";
  70. static NSString *const kDTFReplayKitPermissionErrorReason = @"录屏权限未赋予";
  71. static NSString *const kDTFMicPermissionErrorCode = @"Z1032";
  72. static NSString *const kDTFMicPermissionErrorMessage = @"麦克风打开失败(Z1032)";
  73. static NSString *const kDTFMicPermissionErrorReason = @"麦克风打开失败";
  74. static NSString *const kDTFReplayKitOpenFailedErrorCode = @"Z1033";
  75. static NSString *const kDTFReplayKitOpenFailedErrorMessage = @"录屏打开失败(Z1033)";
  76. static NSString *const kDTFReplayKitOpenFailedErrorReason = @"录屏打开失败";
  77. static NSString *const kDTFInsufficientDiskErrorCode = @"Z1034";
  78. static NSString *const kDTFInsufficientDiskErrorMessage = @"本地存储空间过小(Z1034)";
  79. static NSString *const kDTFInsufficientDiskErrorReason = @"本地存储空间过小";
  80. static NSString *const kDTFMultiFactorFacadeRotationErrorCode = @"Z1035";
  81. static NSString *const kDTFMultiFactorFacadeRotationErrorMessage = @"";
  82. static NSString *const kDTFZimidIsEmptyErrorCode = @"Z1037";
  83. static NSString *const kDTFZimidIsEmptyErrorMessage = @"业务参数错误(Z1037)";
  84. static NSString *const kDTFZimidIsEmptyErrorReason = @"ZimID isEmpty";
  85. static NSString *const kDTFProtocolIsEmptyErrorCode = @"Z1038";
  86. static NSString *const kDTFProtocolIsEmptyErrorMessage = @"";
  87. static NSString *const kDTFOcrUserQuitInAuthenticationCompletedErrorCode = @"Z2000";
  88. static NSString *const kDTFOcrOcrUserQuitInAuthenticationCompletedErrorReason = @"身份证认证完成,未进入刷脸,用户点击了退出";
  89. static NSString *const kDTFOcrOcrUserQuitInAuthenticationCompletedErrorMessage = @"用户OCR主动退出(Z2000)";
  90. static NSString *const kDTFOcrActivelyExitErrorCode = @"Z2001";
  91. static NSString *const kDTFOcrActivelyExitErrorReason = @"用户未认证,直接点击了退出";
  92. static NSString *const kDTFOcrActivelyExitErrorMessage = @"用户OCR主动退出(Z2001)";
  93. static NSString *const kDTFOcrUserQuitInPortraitAuthenticationErrorCode = @"Z2002";
  94. static NSString *const kDTFOcrUserQuitInPortraitAuthenticationErrorReason = @"人像面证面认证后退出";
  95. static NSString *const kDTFOcrUserQuitInPortraitAuthenticationErrorMessage = @"用户OCR主动退出(Z2002)";
  96. static NSString *const kDTFOcrUserQuitInEmblemAuthenticationErrorCode = @"Z2003";
  97. static NSString *const kDTFOcrUserQuitInEmblemAuthenticationErrorReason = @"国徽面证面认证后退出";
  98. static NSString *const kDTFOcrUserQuitInEmblemAuthenticationErrorMessage = @"用户OCR主动退出(Z2003)";
  99. static NSString *const kDTFOcrInterruptionErrorCode = @"Z2004";
  100. static NSString *const kDTFOcrInterruptionErrorReason = @"OCR过程被中断";
  101. static NSString *const kDTFOcrInterruptionErrorMessage = @"OCR过程被中断(Z2004))";
  102. static NSString *const kDTFAudioIsEmptyErrorCode = @"Z5116";
  103. static NSString *const kDTFAudioIsEmptyErrorMessage = @"Z5116 - 音频文件上传失败";
  104. static NSString *const kDTFOcrNetworkFailedErrorCode = @"Z6002";
  105. static NSString *const kDTFOcrNetworkFailedErrorMessage = @"";
  106. static NSString *const kDTFFaceImageIsEmptyErrorCode = @"Z6004";
  107. static NSString *const kDTFFaceImageIsEmptyErrorMessage = @"(Z6004)";
  108. static NSString *const kProtocolErrorCode = @"Z7001";
  109. static NSString *const kProtocolErrorErrorMessage = @"内部错误(Z7001)";
  110. static NSString *const kProtocolErrorReason = @"ZIMInternalError";
  111. static NSString *const kNetworkErrorCode = @"2002";
  112. static NSString *const kNetworkErrorMessage = @"网络错误(network error)(2002)";
  113. static NSString *const kNetworkErrorReason = @"ZIMNetworkfail";
  114. static NSString *const kTimeExpiredNetworkErrorCode = @"2003";
  115. static NSString *const kTimeExpiredNetworkErrorMessage = @"设备时间不对,请确认时间。";
  116. static NSString *const kTimeExpiredNetworkErrorReason = @"ZIMTIMEError";
  117. static NSString *const kLimitTrafficErrorCode = @"1006";
  118. static NSString *const kColorParamErrorCode = @"2006";
  119. static NSString *const kColorParamErrorMessage = @"业务参数错误(2006)";
  120. static NSString *const kColorParamErrorReason = @"颜色值位数不是6位";
  121. static NSString *const kModelFileErrorCode = @"2006";
  122. static NSString *const kModelFileErrorMessage = @"模型文件不存在(2006)";
  123. static NSString *const kModelFileErrorReason = @"传入的模型文件路径不正确";
  124. static NSString *const kModelFileDownloadErrorCode = @"Z1040";
  125. static NSString *const kInitFailErrorReason = @"InitFail";
  126. static NSString *const kZIMValidationSuccessReason = @"ZIMValidationSuccess";
  127. static NSString *const kZIMValidationRetryReason = @"ZIMValidationRetry";
  128. static NSString *const kZIMValidationFailReason = @"ZIMValidationFail";
  129. static NSString *const kZIMInternalErrorReason = @"ZIMInternalError";
  130. static NSString *const kInvalidValidateCodeReason = @"InvalidValidateCode";
  131. static NSString *const kSystemErrorMessage = @"系统错误,请稍候再试。";
  132. static NSString *const kSkippingPhotinusReason = @"skippingPhotinus";
  133. static NSString *const kSkippingPhotinusMessage = @"initializationFailure";
  134. static NSString *const kCameraGivesNoInputMessage = @"cameraGivesNoInput";
  135. static NSString *const kInterruptedMessage = @"interrupted";