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.
39 lines
1.3 KiB
39 lines
1.3 KiB
<?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] ?? '';
|
|
}
|
|
}
|
|
|