'未开启', self::IS_ENABLE_YES => '开启', ]; if (!is_null($is_enable)) { return $map[$is_enable]; } return $map; } public static function getAuditMap($is_audit = null) { $map = [ self::IS_AUDIT_YES => '需要审核', self::IS_AUDIT_NO => '不审核', ]; if (!is_null($is_audit)) { return $map[$is_audit]; } return $map; } public static function getClientStatusMap($client_status = null) { $map = [ self::CLIENT_STATUS0 => '不开启', self::CLIENT_STATUS1 => '开启', ]; if (!is_null($client_status)) { return $map[$client_status]; } return $map; } public static function getRelateTypeMap($relate_type = null) { $map = [ self::VIDEO_RELATE_TYPE1 => '关联商品', self::VIDEO_RELATE_TYPE2 => '关联店铺', self::VIDEO_RELATE_TYPE3 => '关联地址', ]; if (!is_null($relate_type)) { return $map[$relate_type]; } return $map; } public static function getAuditStatusMap($audit_status = null) { $map = [ self::VIDEO_AUDIT_STATUS0 => '未审核', self::VIDEO_AUDIT_STATUS1 => '审核通过', self::VIDEO_AUDIT_STATUS2 => '审核不通过', ]; if (!is_null($audit_status)) { return $map[$audit_status]; } return $map; } public static function getUserTypeMap($user_type = null) { $map = [ self::VIDEO_REWARD_USER_TYPE0 => '本人', self::VIDEO_REWARD_USER_TYPE1 => '一级', self::VIDEO_REWARD_USER_TYPE2 => '二级', ]; if (!is_null($user_type)) { return $map[$user_type]; } return $map; } public static function getRewardTypeMap($reward_type = null) { $map = [ self::VIDEO_REWARD_TYPE0 => '积分', self::VIDEO_REWARD_TYPE1 => '现金', ]; if (!is_null($reward_type)) { return $map[$reward_type]; } return $map; } public static function getMap(): array { return []; } }