(json text did not start with array or object and option to allow fragments not set.) userinfo=0x175c65b00 {nsdebugdescription=json text did not start with array or object and option to allow fragments not set.}
安卓没有问题 抓包显示我本地数据库关闭错误
立即学习“PHP免费学习笔记(深入)”;
(json text did not start with array or object and option to allow fragments not set.) userinfo=0x175c65b00 {nsdebugdescription=json text did not start with array or object and option to allow fragments not set.}
安卓没有问题 抓包显示我本地数据库关闭错误
立即学习“PHP免费学习笔记(深入)”;
上传服务器nginx 没问题 我本地为apache
同一个接口 android访问没有问题 ios有问题 应该是iOS那边解析JSON的问题
接口返回的content-type是什么
你这是指定了接收类型为json文本了 所以保存信息肯定会被认为是错误数据
你是使用AF进行请求吗?添加下面语句试试,
<code>self.manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; </code>
估计获取数据不对
iOS对数据格式跟返回信息要求比较严格,好好查看下这两个数据吧
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号