Closed wangbinji closed 4 years ago
curl -X POST -H "User-Agent: CTNetworking/1.0 (iPhone; iOS 13.1.2; Scale/2.00)" -H "Content-Type: application/json" -H "Accept-Language: zh-Hans-HK;q=1" -d 'appid=12&isfresh=1' http://hmservice.ggfw.hzcgw.gov.cn/hzFullAPPServiceDev/exhibitionmenu/getmenuList.do
报错信息如下: {"code":500,"msg":"appid不能为空","obj":null,"success":false}%
这是你自己这边代码的问题把,content-type你设置的格式是json,结果你传的body不是json格式
curl -X POST -H "User-Agent: CTNetworking/1.0 (iPhone; iOS 13.1.2; Scale/2.00)" -H "Content-Type: application/json" -H "Accept-Language: zh-Hans-HK;q=1" -d 'appid=12&isfresh=1' http://hmservice.ggfw.hzcgw.gov.cn/hzFullAPPServiceDev/exhibitionmenu/getmenuList.do
报错信息如下: {"code":500,"msg":"appid不能为空","obj":null,"success":false}%