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];

posted @ 2017-02-28 16:29  justqi  阅读(3703)  评论(0编辑  收藏  举报