mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-29 01:40:16 +00:00
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | Niucloud-admin 企业快速开发的多应用管理平台
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网址:https://www.niucloud.com
|
||
// +----------------------------------------------------------------------
|
||
// | niucloud团队 版权所有 开源版本可自由商用
|
||
// +----------------------------------------------------------------------
|
||
// | Author: Niucloud Team
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\dict\sys;
|
||
|
||
/**
|
||
* 云服务的字典
|
||
*/
|
||
class CloudDict
|
||
{
|
||
const APPLET_UPLOADING = 0;
|
||
|
||
const APPLET_UPLOAD_SUCCESS = 1;
|
||
|
||
const APPLET_AUDITING = 2;
|
||
|
||
const APPLET_UPLOAD_FAIL = -1;
|
||
|
||
const APPLET_AUDIT_FAIL = -2;
|
||
|
||
public static function getAppletUploadSatus($status) {
|
||
$status_list = [
|
||
self::APPLET_UPLOADING => get_lang('dict_cloud_applet.uploading'),
|
||
self::APPLET_UPLOAD_SUCCESS => get_lang('dict_cloud_applet.upload_success'),
|
||
self::APPLET_UPLOAD_FAIL => get_lang('dict_cloud_applet.upload_fail'),
|
||
self::APPLET_AUDITING => get_lang('dict_cloud_applet.auditing'),
|
||
self::APPLET_AUDIT_FAIL => get_lang('dict_cloud_applet.audit_fail'),
|
||
];
|
||
return $status_list[$status] ?? '';
|
||
}
|
||
}
|