💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 通过门店ID获取门店名称 **位置:** Common\Common\function.php **参数:** > @param $shops_id Int **调用:** > get_shops_name ($shops_id) PHP 文件调用 > {$vo['shops_id']|get_shops_name} View 模版调用 **完整代码:** ~~~ /** * 通过门店ID获取门店名称 * jig 2017-06-08 * @param $shops_id Int * @return string */ function get_shops_name ($shops_id) { if($shops_id != '') { $result = M('shops')->field('shops_name')->where('id = ' . $shops_id)->find(); return $result['shops_name']; } } ~~~