AFN 报错 Invalid parameter not satisfying: URLString

移动开发 waitig 742℃ 百度已收录 0评论

问题:AFN 报错 Invalid parameter not satisfying: URLString

url = http://xxxxxxxx/HXTAPPPWebs.ashx?ServerType=A06&Goods={
"UserID" : "47",
"GoodsNo" : "005",
"GoodsAmmount" : "10",
"GoodsQty" : "2",
"GoodsSize" : "",
"UnitPrice" : "9.390000000000001",
"GoodsColor" : ""
}

 

解决:编码问题

addShoppingCartUrlStr = [addShoppingCartUrlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];


本文由【waitig】发表在等英博客
本文固定链接:AFN 报错 Invalid parameter not satisfying: URLString
欢迎关注本站官方公众号,每日都有干货分享!
等英博客官方公众号
点赞 (0)分享 (0)