企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] 共15个有效参数! # (一)原始文件 ``` Array ( [data] => {"from_station_name":"上海西","from_station_code":"SXH","to_station_name":"上海","to_station_code":"SHH","train_date":"2017-12-20","orderid":"JH151244353295095","user_orderid":"201712051112126251092","orderamount":"8.50","ordernumber":"E945792608","checi":"G7033","msg":"线上退票成功","status":"7","passengers":[{"passengerid":"68","passengersename":"杨红伟","piaotype":1,"piaotypename":"成人票","passporttypeseid":"1","passporttypeseidname":"二代身份证","passportseno":"142201198311174558","price":"8.5","zwcode":"O","zwname":"二等座","ticket_no":"E945792608101002B","cxin":"01车厢,02B座","reason":0,"returntickets":{"returnsuccess":true,"returnmoney":"8.5","returntime":"2017-12-05 18:01:39","returnfailid":"","returnfailmsg":"","returntype":"1"},"refundTimeline":[{"time":"2017-12-05 18:01:00","msg":"线上申请退票"},{"time":"2017-12-05 18:01:39","msg":"线上退票成功","detail":{"returnsuccess":true,"returnmoney":"8.5","returnfailid":"","returnfailmsg":"","returntype":"1","ticket_no":"E945792608101002B","passengername":"杨红伟","passporttypeseid":"1","passportseno":"142201198311174558"}}]}],"refund_money":"8.50","sign":"2d678b2f8f503d5d4a7366edade00d27"} ) ``` # (二)整理原始文件 ``` Array ( [data] => { "from_station_name":"上海西", "from_station_code":"SXH", "to_station_name":"上海", "to_station_code":"SHH", "train_date":"2017-12-20", "orderid":"JH151244353295095", "user_orderid":"201712051112126251092", "orderamount":"8.50", "ordernumber":"E945792608", "checi":"G7033", "msg":"线上退票成功", "status":"7", "passengers":[{"passengerid":"68","passengersename":"杨红伟","piaotype":1,"piaotypename":"成人票","passporttypeseid":"1","passporttypeseidname":"二代身份证","passportseno":"142201198311174558","price":"8.5","zwcode":"O","zwname":"二等座","ticket_no":"E945792608101002B","cxin":"01车厢,02B座","reason":0,"returntickets":{"returnsuccess":true,"returnmoney":"8.5","returntime":"2017-12-05 18:01:39","returnfailid":"","returnfailmsg":"","returntype":"1"},"refundTimeline":[{"time":"2017-12-05 18:01:00","msg":"线上申请退票"},{"time":"2017-12-05 18:01:39","msg":"线上退票成功","detail":{"returnsuccess":true,"returnmoney":"8.5","returnfailid":"","returnfailmsg":"","returntype":"1","ticket_no":"E945792608101002B","passengername":"杨红伟","passporttypeseid":"1","passportseno":"142201198311174558"}}]}], "refund_money":"8.50", "sign":"2d678b2f8f503d5d4a7366edade00d27" } ) ``` # (三)转换成服务器写入文件 >{"data":"{\"from_station_name\":\"\u4e0a\u6d77\u897f\",\"from_station_code\":\"SXH\",\"to_station_name\":\"\u4e0a\u6d77\",\"to_station_code\":\"SHH\",\"train_date\":\"2017-12-20\",\"orderid\":\"JH151244353295095\",\"user_orderid\":\"201712051112126251092\",\"orderamount\":\"8.50\",\"ordernumber\":\"E945792608\",\"checi\":\"G7033\",\"msg\":\"\u7ebf\u4e0a\u9000\u7968\u6210\u529f\",\"status\":\"7\",\"passengers\":[{\"passengerid\":\"68\",\"passengersename\":\"\u6768\u7ea2\u4f1f\",\"piaotype\":1,\"piaotypename\":\"\u6210\u4eba\u7968\",\"passporttypeseid\":\"1\",\"passporttypeseidname\":\"\u4e8c\u4ee3\u8eab\u4efd\u8bc1\",\"passportseno\":\"142201198311174558\",\"price\":\"8.5\",\"zwcode\":\"O\",\"zwname\":\"\u4e8c\u7b49\u5ea7\",\"ticket_no\":\"E945792608101002B\",\"cxin\":\"01\u8f66\u53a2,02B\u5ea7\",\"reason\":0,\"returntickets\":{\"returnsuccess\":true,\"returnmoney\":\"8.5\",\"returntime\":\"2017-12-05 18:01:39\",\"returnfailid\":\"\",\"returnfailmsg\":\"\",\"returntype\":\"1\"},\"refundTimeline\":[{\"time\":\"2017-12-05 18:01:00\",\"msg\":\"\u7ebf\u4e0a\u7533\u8bf7\u9000\u7968\"},{\"time\":\"2017-12-05 18:01:39\",\"msg\":\"\u7ebf\u4e0a\u9000\u7968\u6210\u529f\",\"detail\":{\"returnsuccess\":true,\"returnmoney\":\"8.5\",\"returnfailid\":\"\",\"returnfailmsg\":\"\",\"returntype\":\"1\",\"ticket_no\":\"E945792608101002B\",\"passengername\":\"\u6768\u7ea2\u4f1f\",\"passporttypeseid\":\"1\",\"passportseno\":\"142201198311174558\"}}]}],\"refund_money\":\"8.50\",\"sign\":\"2d678b2f8f503d5d4a7366edade00d27\"}"} # (四)全部转换为数组的格式 ``` Array ( [from_station_name] => 上海西 [from_station_code] => SXH [to_station_name] => 上海 [to_station_code] => SHH [train_date] => 2017-12-20 [orderid] => JH151244353295095 [user_orderid] => 201712051112126251092 [orderamount] => 8.50 [ordernumber] => E945792608 [checi] => G7033 [msg] => 线上退票成功 [status] => 7 [passengers] => Array ( [0] => Array ( [passengerid] => 68 [passengersename] => 杨红伟 [piaotype] => 1 [piaotypename] => 成人票 [passporttypeseid] => 1 [passporttypeseidname] => 二代身份证 [passportseno] => 142201198311174558 [price] => 8.5 [zwcode] => O [zwname] => 二等座 [ticket_no] => E945792608101002B [cxin] => 01车厢,02B座 [reason] => 0 [returntickets] => Array ( [returnsuccess] => 1 [returnmoney] => 8.5 [returntime] => 2017-12-05 18:01:39 [returnfailid] => [returnfailmsg] => [returntype] => 1 ) [refundTimeline] => Array ( [0] => Array ( [time] => 2017-12-05 18:01:00 [msg] => 线上申请退票 ) [1] => Array ( [time] => 2017-12-05 18:01:39 [msg] => 线上退票成功 [detail] => Array ( [returnsuccess] => 1 [returnmoney] => 8.5 [returnfailid] => [returnfailmsg] => [returntype] => 1 [ticket_no] => E945792608101002B [passengername] => 杨红伟 [passporttypeseid] => 1 [passportseno] => 142201198311174558 ) ) ) ) ) [refund_money] => 8.50 [sign] => 2d678b2f8f503d5d4a7366edade00d27 ) ```