diff --git a/application/third_party/trainsystem/config/config.php b/application/third_party/trainsystem/config/config.php index 6434f9d9..521a4f59 100644 --- a/application/third_party/trainsystem/config/config.php +++ b/application/third_party/trainsystem/config/config.php @@ -60,10 +60,15 @@ define("JUHE_TRAIN_EXPORT_API","http://op.juhe.cn/trainTickets/exportAccountChan //http://op.juhe.cn/trainTickets/exportAccountChange?key=79f03107b921ef31310bd40a1415c1cb&since=2016-10-01 00:00&before=2016-10-30 00:00 -//澜海接口(测试) -define("LANHAI_appId","3649601564"); -define("LANHAI_KEY","999c1DtJJ4pEbcxeEqJBKw=="); -define("LANHAI_URL","http://ctriptest.lhticket.com/"); +// //澜海接口(测试) +// define("LANHAI_appId","3649601564"); +// define("LANHAI_KEY","999c1DtJJ4pEbcxeEqJBKw=="); +// define("LANHAI_URL","http://ctriptest.lhticket.com/"); + +//澜海接口(正式) +define("LANHAI_appId","9082253783"); +define("LANHAI_KEY","YZ6yrAbv0Qn8CsZwHtZExA=="); +define("LANHAI_URL","http://ctrip.lhticket.com/"); //订单状态说明 $config["train_order_status_msg"]=array( diff --git a/application/third_party/trainsystem/controllers/innerTrainSearch.php b/application/third_party/trainsystem/controllers/innerTrainSearch.php index 61ae3989..4ea55ca5 100644 --- a/application/third_party/trainsystem/controllers/innerTrainSearch.php +++ b/application/third_party/trainsystem/controllers/innerTrainSearch.php @@ -897,8 +897,8 @@ class innerTrainSearch extends CI_Controller{ exit('传参错误!'); } - $back_json = $this->NewCtripApi($train_date,$fromStation,$toStation,true); - //$back_json = $this->LanHaiApi($train_date,$fromStation,$toStation,true); + //$back_json = $this->NewCtripApi($train_date,$fromStation,$toStation,true); + $back_json = $this->LanHaiApi($train_date,$fromStation,$toStation,true); $train_info = new stdClass(); $train_info = json_decode($back_json); diff --git a/application/third_party/trainsystem/controllers/lanhaiticket.php b/application/third_party/trainsystem/controllers/lanhaiticket.php index fc6581c2..3d8f465d 100644 --- a/application/third_party/trainsystem/controllers/lanhaiticket.php +++ b/application/third_party/trainsystem/controllers/lanhaiticket.php @@ -25,6 +25,11 @@ class LanHaiTicket extends CI_Controller public function index() { + //出票锁单接口: https://www.mycht.cn/info.php/apps/trainsystem/lanhaiticket/pushorderdetail?mainOrderId=HN1720670129499 + //出票回调接口:https://www.mycht.cn/info.php/apps/trainsystem/lanhaiticket/pushorderresult/ + //退票锁单接口: https://www.mycht.cn/info.php/apps/trainsystem/lanhaiticket/refundorderdetail?dataId=82033 + //退票回调接口: https://www.mycht.cn/info.php/apps/trainsystem/lanhaiticket/refundorderresult/ + //退款回调接口:https://www.mycht.cn/info.php/apps/trainsystem/lanhaiticket/refundpriceresult/ } /**