迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架, 基于MIT开源许可协议发布,不限制商业使用,以多端互联为设计理念, 支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
请问下我内容的字段是专题关联字段,api接口调用不能获取到关联文章的标题和内容,只是个id,这个要怎么格式化呀!
需要关联的模块是brand,字段是title和thumb
插件版权:官方插件插件名称:API接口
插件教程:https://www.xunruicms.com/doc/app-361.html
function mnr($cid) { return \Phpcmf\Service::M()->table_site('模块目录')->get((int)$cid); }
function mnr($cid) { return \Phpcmf\Service::M()->table_site('模块目录')->where("id in(".$cid.")")->getAll(); }
function mnr($cid) { return \Phpcmf\Service::M()->table_site('模块目录')->get((int)$cid); }适用于关联单条内容,我以前写的回调函数function mnr($cid) { return \Phpcmf\Service::M()->table_site('模块目录')->where("id in(".$cid.")")->getAll(); }