ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 通过系统款号ID获得系统款号 **位置:** Common\Common\function.php whz 2018-06-26 **参数:** * @param int $id * @return string **调用:** > PHP 调用: get_spu_no ($spu_id) > View 模版调用: {$vo['spu_id']|get_spu_no} **完整代码:** ~~~ /** * 通过系统款号ID获得系统款号 * whz 2018-05-08 * @param int $id * @return string */ function get_spu_no ($id) { if (empty($id)) { return ''; } $result = M('goods_spu')->find($id); return $result['spu_no']; } ~~~