多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 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']; } ~~~