时间:2021-07-21人气:-
- C::t('forum_attachment')->fetch_all_by_id('aid', $v['tid'] );
执行上面的代码,会返回对应帖子的附件信息!
- Array
- (
- [1] => Array
- (
- [aid] => 1
- [tid] => 1
- [pid] => 1
- [uid] => 1
- [tableid] => 1
- [downloads] => 0
- )
- )
上篇:discuz商品贴添加自定义字段
下篇:Discuz!-分库一主多从数据库分离-config_glo...