CloudDict.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的多应用管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\sys;
  12. /**
  13. * 云服务的字典
  14. */
  15. class CloudDict
  16. {
  17. const APPLET_UPLOADING = 0;
  18. const APPLET_UPLOAD_SUCCESS = 1;
  19. const APPLET_AUDITING = 2;
  20. const APPLET_PUBLISHED = 3;
  21. const APPLET_UPLOAD_FAIL = -1;
  22. const APPLET_AUDIT_FAIL = -2;
  23. public static function getAppletUploadSatus($status) {
  24. $status_list = [
  25. self::APPLET_UPLOADING => get_lang('dict_cloud_applet.uploading'),
  26. self::APPLET_UPLOAD_SUCCESS => get_lang('dict_cloud_applet.upload_success'),
  27. self::APPLET_UPLOAD_FAIL => get_lang('dict_cloud_applet.upload_fail'),
  28. self::APPLET_AUDITING => get_lang('dict_cloud_applet.auditing'),
  29. self::APPLET_AUDIT_FAIL => get_lang('dict_cloud_applet.audit_fail'),
  30. self::APPLET_PUBLISHED => get_lang('dict_cloud_applet.published'),
  31. ];
  32. return $status_list[$status] ?? '';
  33. }
  34. }