自定义会员字段,调用出来都是数字 麻烦看下

迅睿框架 更新 2024-09-02 20:33:42 迅睿必火

image

image

<span class="author-diqu">{dr_linkage('diqu', $字段名, 0, 'name')}</span><span class="author-jiage">{dr_get_file($jiage)}</span><span class="author-yijiandaifa">{php $field = dr_field_options(17);}{$field[$yijiandaifa]}</span>

          <span class="author-sfzzm">{dr_thumb($sfzzm, 100, 100)}</span><span class="author-sfzfm">{dr_thumb($sfzfm, 100, 100)}</span><span class="author-yyzz">{dr_thumb($yyzz, 100, 100)}</span>

这是我写的代码,调用出来全是数字。麻烦大佬给看下,谢谢

方案

  • 外聘专员-小波工作室 #1 · 2024-08-31 14:30:08
    建议你一个字段一个字段的查,你这写了一堆,根本不知道哪个是哪个的输出。
  • 迅睿必火 #2 · 2024-08-31 14:51:08
    外聘专员-小波工作室 <span class="author-sfzzm">{dr_thumb($sfzzm, 100, 100)}</span>身份证正面<span class="author-sfzfm">{dr_thumb($sfzfm, 100, 100)}</span>身份证反面<span class="author-yyzz">{dr_thumb($yyzz, 100, 100)}</span>营业执照照片调用图片地址,谢谢
  • 迅睿必火 #3 · 2024-08-31 15:29:25
    <span class="author-jiage">{$user['jiage']}</span><span class="author-yijiandaifa">{$user['yijiandaifa']}</span>其他解决了,这两个还是显示数字。麻烦给看下
  • 外聘专员-小波工作室 #4 · 2024-08-31 15:33:06
    类别选择:(在自定义字段管理里面看),名称填写:(也在自定义字段管理里面),前缀:user,字段标签生成工具:https://www.xunruicms.com/doc/code/field.html
  • 迅睿必火 #5 · 2024-09-02 20:33:36
    满意答案
    自己解决,谢谢大家的帮助
  • 迅睿必火 #6 · 2024-09-02 20:33:42
    @迅睿必火:自己解决,大家的帮助

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关