织梦dedecms栏目添加自定义字段,增加栏目上传缩略图功能(2)

$query = "Select arc.*,tp.reid,tp.typedir,ch.addtable from `ant_archives` arc left join ant_arctype tp on tp.id=arc.typeid left join ant_channeltype as ch on arc.channel = ch.id where arc.id='$aid' "; $this->Fields = $this->dsql->GetOne($query);  

替换为

$query = "Select arc.*,tp.reid,tp.typedir,tp.typeimg,ch.addtable from `ant_archives` arc left join ant_arctype tp on tp.id=arc.typeid left join ant_channeltype as ch on arc.channel = ch.id where arc.id='$aid' "; $this->Fields = $this->dsql->GetOne($query);  

即可。

需要这个功能的朋友,去试试吧。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/2a3bd213e7b1ab882f436bccc64a5a8f.html