Constants.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\utils\Ocr\Constant;
  8. /*
  9. * Licensed to the Apache Software Foundation (ASF) under one
  10. * or more contributor license agreements. See the NOTICE file
  11. * distributed with this work for additional information
  12. * regarding copyright ownership. The ASF licenses this file
  13. * to you under the Apache License, Version 2.0 (the
  14. * "License"); you may not use this file except in compliance
  15. * with the License. You may obtain a copy of the License at
  16. *
  17. * http://www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing,
  20. * software distributed under the License is distributed on an
  21. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  22. * KIND, either express or implied. See the License for the
  23. * specific language governing permissions and limitations
  24. * under the License.
  25. */
  26. /**
  27. * ͨ�ó���
  28. */
  29. class Constants
  30. {
  31. //ǩ���㷨HmacSha256
  32. const HMAC_SHA256 = "HmacSHA256";
  33. //����UTF-8
  34. const ENCODING = "UTF-8";
  35. //UserAgent
  36. const USER_AGENT = "demo/aliyun/java";
  37. //���з�
  38. const LF = "\n";
  39. //�ָ���1
  40. const SPE1 = ",";
  41. //�ָ���2
  42. const SPE2 = ":";
  43. //Ĭ������ʱʱ��,��λ����
  44. const DEFAULT_TIMEOUT = 1000;
  45. //����ǩ����ϵͳHeaderǰ׺,ֻ��ָ��ǰ׺��Header�Ż���뵽ǩ����
  46. const CA_HEADER_TO_SIGN_PREFIX_SYSTEM = "X-Ca-";
  47. }