PHP建站技术分享-从入门到精通PHP建站技术分享-从入门到精通PHP建站技术分享-从入门到精通

QQ:420220301 微信/手机:150-3210-7690
当前位置:首页 > CMS教程 > Fastadmin

CMS api post新增文档,提交的数组的双引号却被转译成&quot字符

管理员 2024-12-14
Fastadmin
20

CMS,API新增文档时,提交数组字段却转译成"字符。

             //$params["arrlist"]: [{"title":"a","url":"a","password":"a"},{"title":"b","url":"b","password":"b"},{"title":"c","url":"c","password":"c"}]            $row['downloadurl'] = $params["arrlist"];            $row['images'] = $params["files"];            $row['price'] = 100;            $row['channel'] = '分类';            $row['title'] = '文档';            $url = "http://yourname/addons/cms/api/index";            $result = fastHttp::post($url, $row);            return $result;            //写入数据库的结果是:{"a":"a","b":"b","c":"c"}

希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 iCMS, Fastadmin, ClassCMS, LeCMS, PbootCMS, PHPCMS, 易优CMS, YzmCMS, 讯睿CMS, 极致CMS, Wordpress, HkCMS, YznCMS, WellCMS, ThinkCMF, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。

相关推荐

扫码关注

qrcode

QQ交谈

回顶部