'仓库中', self::SHELVE => '销售中' ]; if ($value === true) { return $data; } return $data[$value]; } /** * @notes 审核状态列表 * @param $from * @return string|string[] * @author cjhao * @date 2024/8/23 16:14 */ public static function getAuditStatusDesc($from = true) { $desc = [ self::AUDIT_STATUS_WAIT => '待审核', self::AUDIT_STATUS_PASS => '审核通过', self::AUDIT_STATUS_REFUSE => '审核拒绝' ]; if(true === $from){ return $desc; } return $desc[$from] ?? ''; } }