|
- <?php
- require_once '../st-xm/Common/Mysql.php';
- require_once '../st-xm/Common/config_api.inc';
- require_once '../st-xm/Common/sinaAPI.php';
- require_once '../st-xm/Common/zizai_orderAPI.php';
- header("Access-Control-Allow-Origin:*");
-
- /*
- $current_time = date("Y-m-d H:i:s");
- $getOrderInfo = new orderService();
- $result = array();
- //获取所有可销售线路$ccode
- $return_result = $getOrderInfo->run_list(zizaiArgs::$USER);
- if ($return_result["code"] == 0) {
- $circuitry_list = $return_result["circuitry_list"]["circuitry"];
- }
- print_r($circuitry_list);
-
- */
- /*
- $ticket_num = 1;
- $customer_name = "测试下单001";
- $customer_mobile = 13816608252;
- $customer_id_no = "310104198308317232";
- */
-
- /*
- $prod_id = "G1110999T1995";
- $tradeno = 6901242;
- $customerlist = '{'.$prod_id.'|沈丹婷||31011219861002182X}{'.$prod_id.'|聂雯倩||310109198307292047}';
- $customerlist .= '{'.$prod_id.'|刘佳||310108198805023345}{'.$prod_id.'|贺文卿||31011319850623002X}';
- $customerlist .= '{'.$prod_id.'|姚建华||310113198710051918}{'.$prod_id.'|李丽丽||310229199101030821}';
- $customerlist .= '{'.$prod_id.'|邓晓娟||310228199109293822}{'.$prod_id.'|李月||320621199109223727}';
- $customerlist .= '{'.$prod_id.'|孙晶晶||320826199202191443}{'.$prod_id.'|沈佳欣||321323199111223969}';
- $customerlist .= '{'.$prod_id.'|陈会会||321321199410097680}{'.$prod_id.'|武威||340823199107240010}';
- $customerlist .= '{'.$prod_id.'|刘蓓蕾||341182198610081625}{'.$prod_id.'|赵静||341182199102102260}';
- $customerlist .= '{'.$prod_id.'|许亮||34250119921228053X}{'.$prod_id.'|邹恒亮||342626198708275636}';
- $customerlist .= '{'.$prod_id.'|张福峰||370282199111077319}{'.$prod_id.'|马伟杰||412728198704163246}';
-
-
- //$prod_id = "G1110428T1995";
- //$tradeno = 6909462;
- //$customerlist = '{'.$prod_id.'|李婷婷||230123198910130808}';
- echo $tradeno."<hr />".$customerlist;
-
- $setOrder = new orderService();
- $lock_order = $setOrder->customer(zizaiArgs::$USER, $tradeno, $customerlist);
-
- echo '<hr />$lock_order=<hr />';
- print_r( $lock_order );
-
-
-
- */
-
- /*
- $ticket_url = "http://cs.zhizhuchuxing.com/apk/稳定的蜘蛛行车.apk";
-
- $access_url = "https://api-ssl.bitly.com/v3/shorten?access_token=".BITACCESSTOKEN."&longUrl=".$ticket_url;
- $result = httpRequest($access_url);
- $return_result = json_decode($result,true);
- print_r($return_result);echo "<hr />";
- $url = $return_result["data"]["url"];
- $return_url = str_replace("http://","https://", $url);
- echo $return_url;
- exit();
- */
-
- /*
- $result = httpRequest("https://is.gd/create.php?format=simple&format=json&url=".$ticket_url);
- $return_array = json_decode($result,true);
- $short_url = $return_array["shorturl"];
- print_r($json);exit();
- */
- /*
- $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654" );
- $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_run_list.php",$post_data);
- $run_list = json_decode($result,true);
- print_r($run_list);
- exit();
- */
-
- /*
- $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654", 'run_code'=> 'G1103391T1995');
- $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_run_stock_test.php",$post_data);
- $run_list = json_decode($result,true);
- print_r($run_list);
- exit();
- */
-
- /*
- $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654", "run_code" => "G1103515T4702" );
- $post_data['ticket_num'] = 1;
- $post_data['per_price'] = 220;
- $post_data['all_price'] = 220;
- $post_data['customer_name'] = "张敏燕";
- $post_data['customer_mobile'] = "18058028499";
- $post_data['customer_id_no'] = "330903197709033624";
- $post_data['ctrip_order_no'] = "2206210990";
- $_POST['passengers'] = array();
- $_POST['passengers'][] = array( "name" => "张敏燕", "mobile" => "18058028499", "id_no" => "330903197709033624" );
- $post_data['passengers'] = json_encode($_POST['passengers']);
-
- $result = send_post("http://api.zhizhuchuxing.com/api1.0/submit_order_test.php",$post_data);
- $disp_array = json_decode($result,true);
- echo "<hr />";
- print_r($disp_array);
- exit();
- */
|