NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
### get_warehouse 通过ID获取仓库名称 **位置:** Common\Common\function.php **参数:** @param $id Int **调用:** > PHP 调用: get_warehouse ($id) > View 模版调用: {$vo['id']|get_warehouse} **完整代码:** ~~~ /** * 通过ID获取仓库名称 * jig 2017-09-28 * @param $id Int * @return string */ function get_warehouse ($id) { if (empty($id)) { return ''; } $result = M('storage')->find($id); return $result['storage_name']; } ~~~