84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如题;使用php的curl发送post请求;数据可以拿到,但是在服务端返回的json字符串上多了一个数字1,查代码也没找到是什么时候被添加上的,百度完全找不到这方面的资料,应该只有我这样的新手才会遇到吧;
页面输出:
{"model":{"id":1},"onTop":2,"soldCount":0,"result":0,"timeMillis":1492765168804}1
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Add thiscurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
Search for the specific meaning by yourself
This 1 should be returned by your interface. You should look at where your 9789 interface is.
$rt == 1
Add this
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
Search for the specific meaning by yourself
This 1 should be returned by your interface. You should look at where your 9789 interface is.
$rt == 1