You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/application/third_party/train_it/config/config.php

88 lines
3.2 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//聚合火车订票API key
define("JUHE_TRAIN_API_KEY","79f03107b921ef31310bd40a1415c1cb");
//聚合火车订票---查询api
define("JUHE_TRAIN_CX_API","http://op.juhe.cn/trainTickets/ticketsAvailable");
//聚合火车订票---订票api
define("JUHE_TRAIN_DP_API","http://op.juhe.cn/trainTickets/submit");
//聚合火车订票---状态查询api
define("JUHE_TRAIN_STATUS_API","http://op.juhe.cn/trainTickets/orderStatus");
//聚合火车订票---取消订单api
define("JUHE_TRAIN_CANCEL_API","http://op.juhe.cn/trainTickets/cancel");
//聚合火车订票---请求出票支付api
define("JUHE_TRAIN_PAY_API","http://op.juhe.cn/trainTickets/pay");
//聚合火车订票---线上退票api
define("JUHE_TRAIN_REFUND_API","http://op.juhe.cn/trainTickets/refund");
//聚合火车订票---导出记录api
define("JUHE_TRAIN_EXPORT_API","http://op.juhe.cn/trainTickets/exportAccountChange");
//http://op.juhe.cn/trainTickets/exportAccountChange?key=79f03107b921ef31310bd40a1415c1cb&since=2016-10-01 00:00&before=2016-10-30 00:00
//订单状态说明
$config["train_order_status_msg"]=array(
"0"=>"待处理",
"1"=>"失效订单",
"2"=>"待支付",
"3"=>"已支付,待出票",
"4"=>"出票成功",
"5"=>"出票失败",
"6"=>"线上退票处理中",
"7"=>"有乘客退票(改签)成功",
"8"=>"乘客退票失败",
"e"=>"数据错误,提交失败"
);
//座次配对
$config["train_zw"]=array(
"O"=>"二等座",
"9"=>"商务座",
"P"=>"特等座",
"6"=>"高级软卧",
"M"=>"一等座",
"4"=>"软卧",
"2"=>"软座",
"3"=>"硬卧",
"1"=>"硬座",
);
//数据库座次配对,包厢硬卧(5),无座(WZ),聚合没有
$config["db_train_zw"]=array(
"9"=>"9",
"P"=>"P",
"M"=>"M",
"7"=>"M",
"O"=>"O",
"8"=>"O",
"6"=>"6",
"A"=>"6",
"S"=>"4",
"4"=>"4",
"F"=>"4",
"3"=>"3",
"2"=>"2",
"1"=>"1",
);
//票种配对
$config["train_piaotype"]=array(
"1"=>"成人票",
"2"=>"儿童票",
"3"=>"学生票",
"4"=>"残军票",
);
//证件类型配对
$config["train_passportty"]=array(
"B"=>"护照",
"1"=>"二代身份证",
"2"=>"一代身份证",
"C"=>"港澳通行证",
"G"=>"台湾通行证"
);