The order information pushed by the micro-store API is in the following format: {code ...} you need to obtain the data of one or more fields. here there are two json fields. what should you do? If it is in the format of {code...}, the following code can be used:
Content = {"message": {"seller_name": "Daily", "total": "0.10", "express_identifier": "0.00", "buyer_identity_id": "0 ", "f_phone": "", "fx_fee_value": "0.00", "express_type": null, "express_note": "", "modify_price_enable": "1", "express ": null, "order_id": "774780580411340", "order_type_des": "secured transactions", "confirm_expire": "", "group_status":-1, "send_time": null, "weixin": "", "is_close": 0, "argue_flag": 0, "total_detail": "0.00", "status_desc": "unpaid", "quantity ": "1", "note": "", "trade_no": null, "sk": null, "status": "unpay", "discount_info": "No discount ", "seller_phone": "18512345678", "express_fee_num": "0.00", "pay_time": "", "discount_amount": "0", "discount": null, "real_income_price": "", "price": "0.10", "buyer_info": {"buyer_id": "1024799624", "region": "Yuhui district", "phone ": "15923808761", "post": null, "address": "The City of Yuhui district, Bengbu city, Anhui province is back", "name": "Passing By", "self_address": "The city is back ", "province": "Anhui", "city": "Bengbu"}, "items": [{"is_delivered": 0, "img ":" http://wd.geilicdn.com/vshop1024697422-1476758240117-CE6F5-s1.jpg?w=110&h=110&cp=1 "," Total_price ":" 0.10 "," merchant_code ":" "," deliver_id ":" 0 "," url ":" http://weidian.com/i/1969988669 "," Deliver_status_desc ":" "," price ":" 0.10 "," sku_merchant_code ":" "," item_name ":" test item "," item_id ": "1969988669", "fx_fee_rate": "0%", "quantity": "1", "can_deliver": 1, "refund_info": {"refund_no ":"", "refund_str": "0", "refund_status_str": "", "item_id": "1969988669", "item_sku_id": "0", "refund_status ":"", "refund_express_und": "0", "can_refund": "0", "refund_item_detail": "0", "refund_status_desc": ""}, "sku_id": "0 ", "sku_title": null}], "user_phone": "15912345678", "status2": "unpaid", "f_seller_id": "", "seller_id": "1024697422 ", "add_time": "13:25:54", "refund_info": {"buyer_refund_expiration": null, "refund_time": null}, "return_code": "", "express_no": null, "f_shop_name": "", "original_total_price": "", "order_type": "3"}, "type": "weidian. order. non_payment "} & public = {" x_forwarded_for ": null}
You need to obtain the data of one or more fields. here there are two json fields. what should you do?
If yes
{"Seller_name": "Daily", "total": "0.10", "express_0000":" 0.00 "," buyer_identity_id ":" 0 "," f_phone ":"", "fx_fee_value": "0.00", "express_type": null, "express_note": "", "modify_price_enable": "1", "express": null, "order_id ": "774780580411340 "}
In this format, the following code can be used.
Reply content:
The order information format pushed by the micro-store API is as follows:
Content = {"message": {"seller_name": "Daily", "total": "0.10", "express_identifier": "0.00", "buyer_identity_id": "0 ", "f_phone": "", "fx_fee_value": "0.00", "express_type": null, "express_note": "", "modify_price_enable": "1", "express ": null, "order_id": "774780580411340", "order_type_des": "secured transactions", "confirm_expire": "", "group_status":-1, "send_time": null, "weixin": "", "is_close": 0, "argue_flag": 0, "total_detail": "0.00", "status_desc": "unpaid", "quantity ": "1", "note": "", "trade_no": null, "sk": null, "status": "unpay", "discount_info": "No discount ", "seller_phone": "18512345678", "express_fee_num": "0.00", "pay_time": "", "discount_amount": "0", "discount": null, "real_income_price": "", "price": "0.10", "buyer_info": {"buyer_id": "1024799624", "region": "Yuhui district", "phone ": "15923808761", "post": null, "address": "The City of Yuhui district, Bengbu city, Anhui province is back", "name": "Passing By", "self_address": "The city is back ", "province": "Anhui", "city": "Bengbu"}, "items": [{"is_delivered": 0, "img ":" http://wd.geilicdn.com/vshop1024697422-1476758240117-CE6F5-s1.jpg?w=110&h=110&cp=1 "," Total_price ":" 0.10 "," merchant_code ":" "," deliver_id ":" 0 "," url ":" http://weidian.com/i/1969988669 "," Deliver_status_desc ":" "," price ":" 0.10 "," sku_merchant_code ":" "," item_name ":" test item "," item_id ": "1969988669", "fx_fee_rate": "0%", "quantity": "1", "can_deliver": 1, "refund_info": {"refund_no ":"", "refund_str": "0", "refund_status_str": "", "item_id": "1969988669", "item_sku_id": "0", "refund_status ":"", "refund_express_und": "0", "can_refund": "0", "refund_item_detail": "0", "refund_status_desc": ""}, "sku_id": "0 ", "sku_title": null}], "user_phone": "15912345678", "status2": "unpaid", "f_seller_id": "", "seller_id": "1024697422 ", "add_time": "13:25:54", "refund_info": {"buyer_refund_expiration": null, "refund_time": null}, "return_code": "", "express_no": null, "f_shop_name": "", "original_total_price": "", "order_type": "3"}, "type": "weidian. order. non_payment "} & public = {" x_forwarded_for ": null}
You need to obtain the data of one or more fields. here there are two json fields. what should you do?
If yes
{"Seller_name": "Daily", "total": "0.10", "express_0000":" 0.00 "," buyer_identity_id ":" 0 "," f_phone ":"", "fx_fee_value": "0.00", "express_type": null, "express_note": "", "modify_price_enable": "1", "express": null, "order_id ": "774780580411340 "}
In this format, the following code can be used.