UUID升级后,1.0的写法和2.0的写法不一样,项目中兼容的写法是 uuid_class = UUIDTools::UUID rescue UUID uuid = uuid_class.random_create().to_s