Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复个bug #146

Merged
merged 1 commit into from
Nov 4, 2015
Merged

修复个bug #146

merged 1 commit into from
Nov 4, 2015

Conversation

xiaohome
Copy link

@xiaohome xiaohome commented Nov 4, 2015

$jsonData = '{"errcode":0,"errmsg":"ok","products_info":[{"product_base":{"name":"测试商品,请勿购买!!!!!!!!","category_id":[536891949],"img":["http:\/\/mmbiz.qpic.cn\/mmbiz\/J5uBLiaU5Y8AxGSFwuAHB4G8CS3Z6A4EH2VYhiaZCKiaXZW7VnFH3KDV5O7nGYf9NZjZlJD7hTkqnu8WjP11sIRRQ\/0?wx_fmt=jpeg","http:\/\/mmbiz.qpic.cn\/mmbiz\/J5uBLiaU5Y8AxGSFwuAHB4G8CS3Z6A4EH2VYhiaZCKiaXZW7VnFH3KDV5O7nGYf9NZjZlJD7hTkqnu8WjP11sIRRQ\/0?wx_fmt=jpeg"],"detail":[],"property":[{"id":"图案","vid":"纯色"},{"id":"品牌","vid":"Aee\/爱意"},{"id":"适合季节","vid":"冬"},{"id":"鞋面主材","vid":"袋鼠皮"},{"id":"跟高","vid":"高跟(5-8cm)"},{"id":"鞋头款式","vid":"扁头"},{"id":"鞋跟形状","vid":"厚底跟"},{"id":"帮高","vid":"高帮"},{"id":"闭合方式","vid":"搭扣"},{"id":"制作工艺","vid":"硫化"},{"id":"开口深度","vid":"深口(11cm以上)"},{"id":"上市年份","vid":"2012秋季"},{"id":"风格","vid":"海军"},{"id":"货号","vid":"其他"},{"id":"鞋底材质","vid":"木质底"},{"id":"皮革风格","vid":"打蜡皮"},{"id":"内里材质","vid":"棉质"},{"id":"流行元素","vid":"T形绑带"}],"sku_info":[],"buy_limit":10,"main_img":"http:\/\/mmbiz.qpic.cn\/mmbiz\/J5uBLiaU5Y8AxGSFwuAHB4G8CS3Z6A4EH2VYhiaZCKiaXZW7VnFH3KDV5O7nGYf9NZjZlJD7hTkqnu8WjP11sIRRQ\/0?wx_fmt=jpeg","detail_html":"<p style=\"margin-bottom:11px;margin-top:11px;\"><\/p><div class=\"item_pic_wrp\" style=\"margin-bottom:8px;font-size:0;\"><img class=\"item_pic\" style=\"width:100%;\" alt=\"\" src=\"http:\/\/mmbiz.qpic.cn\/mmbiz\/J5uBLiaU5Y8AxGSFwuAHB4G8CS3Z6A4EH2VYhiaZCKiaXZW7VnFH3KDV5O7nGYf9NZjZlJD7hTkqnu8WjP11sIRRQ\/0?wx_fmt=jpeg\" ><\/div><p style=\"margin-bottom:11px;margin-top:11px;\">测试商品 请勿购买!!!!!!!!!!!!!!<br>测试商品 请勿购买!!!!!!!!!!!!!!<br>测试商品 请勿购买!!!!!!!!!!!!!!<br>测试商品 请勿购买!!!!!!!!!!!!!!<\/p>"},"sku_list":[{"sku_id":"","price":100,"icon_url":"","quantity":96,"product_code":"","ori_price":15000}],"delivery_info":{"delivery_type":0,"template_id":0,"weight":0,"volume":0,"express":[{"id":10000027,"price":0},{"id":10000028,"price":0},{"id":10000029,"price":0}]},"product_id":"pe4OowbHVULEWICFN1t6iy2BPWXA","status":2,"attrext":{"isPostFree":1,"isHasReceipt":1,"isUnderGuaranty":1,"isSupportReplace":0,"location":{"country":"中国","province":"山东","city":"济南","address":""}}}]}';

如果用以前的,解析这段代码 将无法解析,还是string 不是array

overtrue added a commit that referenced this pull request Nov 4, 2015
@overtrue overtrue merged commit f279c53 into w7corp:2.1 Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants