mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-22 02:58:10 +00:00
40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | Niucloud-admin 企业快速开发的多应用管理平台
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网址:https://www.niucloud.com
|
||
// +----------------------------------------------------------------------
|
||
// | niucloud团队 版权所有 开源版本可自由商用
|
||
// +----------------------------------------------------------------------
|
||
// | Author: Niucloud Team
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace addon\shop\app\dict\goods;
|
||
|
||
class EvaluateDict
|
||
{
|
||
const AUDIT_NO = 0;
|
||
const AUDIT = 1;
|
||
const AUDIT_ADOPT = 2;
|
||
const AUDIT_REFUSE = 3;
|
||
|
||
/**
|
||
* 评价状态
|
||
* @param $type
|
||
* @return array|mixed|string
|
||
*/
|
||
public static function getStatus($type = '')
|
||
{
|
||
$data = [
|
||
self::AUDIT_NO => get_lang('dict_shop_goods_evaluate.audit_no'), // 无需审核
|
||
self::AUDIT => get_lang('dict_shop_goods_evaluate.audit'), // 待审核
|
||
self::AUDIT_ADOPT => get_lang('dict_shop_goods_evaluate.audit_adopt'), // 审核通过
|
||
self::AUDIT_REFUSE => get_lang('dict_shop_goods_evaluate.audit_refuse'), // 审核拒绝
|
||
];
|
||
if (!$type) {
|
||
return $data;
|
||
}
|
||
return $data[ $type ] ?? '';
|
||
}
|
||
}
|