企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` //step1:站点简码查询 public function cityCode() { train_cityCode('SXH'); } //step2:余票查询 public function ticketsAvailable() { train_ticketsAvailable('2017-12-08','SXH',"SHH"); } //step3:提交订单 public function submit() { $passengers ='[{"passengerid":"68","passengersename":"杨红伟","piaotype":1,"piaotypename":"成人票","passporttypeseid":"1","passporttypeseidname":"二代身份证","passportseno":"142201198311174558","price":"8.5","zwcode":"M","zwname":"一等座"}]'; train_submit('201711200607243274380','2017-12-08','SXH','SHH','G7033',$passengers); } //step4:请求出票 public function pay() { train_pay('JH151218497634222'); } //step5:订单状态查询 public function orderStatuse() { train_orderStatuse('JH151218497634222'); } //step6:线上退票 public function refund() { $tickets = '[{"ticket_no":"E374529237102001D","passengername":"王二","passporttypeseid":"1","passportseno":"370827199109121234"}]'; train_refund('JH151218497634222',$tickets); } //step7:历史订单查询 public function orders() { train_orderStatuse('JH151218497634222'); } //step8:下载csv格式报表 public function export() { train_export('2017-12-01','2017-12-15'); } //step9:取消待支付的订单 public function cancel() { train_cancel('JH151218497634222'); } //step10:设置回调 public function setPush() { train_setPush(); } //step11:查询账户余额 public function balance() { train_balance(); } ```