You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

109 lines
3.8 KiB

  1. <?php
  2. require_once '../st-xm/Common/Mysql.php';
  3. require_once '../st-xm/Common/config_api.inc';
  4. require_once '../st-xm/Common/sinaAPI.php';
  5. require_once '../st-xm/Common/zizai_orderAPI.php';
  6. header("Access-Control-Allow-Origin:*");
  7. /*
  8. $current_time = date("Y-m-d H:i:s");
  9. $getOrderInfo = new orderService();
  10. $result = array();
  11. //获取所有可销售线路$ccode
  12. $return_result = $getOrderInfo->run_list(zizaiArgs::$USER);
  13. if ($return_result["code"] == 0) {
  14. $circuitry_list = $return_result["circuitry_list"]["circuitry"];
  15. }
  16. print_r($circuitry_list);
  17. */
  18. /*
  19. $ticket_num = 1;
  20. $customer_name = "测试下单001";
  21. $customer_mobile = 13816608252;
  22. $customer_id_no = "310104198308317232";
  23. */
  24. /*
  25. $prod_id = "G1110999T1995";
  26. $tradeno = 6901242;
  27. $customerlist = '{'.$prod_id.'|沈丹婷||31011219861002182X}{'.$prod_id.'|聂雯倩||310109198307292047}';
  28. $customerlist .= '{'.$prod_id.'|刘佳||310108198805023345}{'.$prod_id.'|贺文卿||31011319850623002X}';
  29. $customerlist .= '{'.$prod_id.'|姚建华||310113198710051918}{'.$prod_id.'|李丽丽||310229199101030821}';
  30. $customerlist .= '{'.$prod_id.'|邓晓娟||310228199109293822}{'.$prod_id.'|李月||320621199109223727}';
  31. $customerlist .= '{'.$prod_id.'|孙晶晶||320826199202191443}{'.$prod_id.'|沈佳欣||321323199111223969}';
  32. $customerlist .= '{'.$prod_id.'|陈会会||321321199410097680}{'.$prod_id.'|武威||340823199107240010}';
  33. $customerlist .= '{'.$prod_id.'|刘蓓蕾||341182198610081625}{'.$prod_id.'|赵静||341182199102102260}';
  34. $customerlist .= '{'.$prod_id.'|许亮||34250119921228053X}{'.$prod_id.'|邹恒亮||342626198708275636}';
  35. $customerlist .= '{'.$prod_id.'|张福峰||370282199111077319}{'.$prod_id.'|马伟杰||412728198704163246}';
  36. //$prod_id = "G1110428T1995";
  37. //$tradeno = 6909462;
  38. //$customerlist = '{'.$prod_id.'|李婷婷||230123198910130808}';
  39. echo $tradeno."<hr />".$customerlist;
  40. $setOrder = new orderService();
  41. $lock_order = $setOrder->customer(zizaiArgs::$USER, $tradeno, $customerlist);
  42. echo '<hr />$lock_order=<hr />';
  43. print_r( $lock_order );
  44. */
  45. /*
  46. $ticket_url = "http://cs.zhizhuchuxing.com/apk/稳定的蜘蛛行车.apk";
  47. $access_url = "https://api-ssl.bitly.com/v3/shorten?access_token=".BITACCESSTOKEN."&longUrl=".$ticket_url;
  48. $result = httpRequest($access_url);
  49. $return_result = json_decode($result,true);
  50. print_r($return_result);echo "<hr />";
  51. $url = $return_result["data"]["url"];
  52. $return_url = str_replace("http://","https://", $url);
  53. echo $return_url;
  54. exit();
  55. */
  56. /*
  57. $result = httpRequest("https://is.gd/create.php?format=simple&format=json&url=".$ticket_url);
  58. $return_array = json_decode($result,true);
  59. $short_url = $return_array["shorturl"];
  60. print_r($json);exit();
  61. */
  62. /*
  63. $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654" );
  64. $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_run_list.php",$post_data);
  65. $run_list = json_decode($result,true);
  66. print_r($run_list);
  67. exit();
  68. */
  69. /*
  70. $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654", 'run_code'=> 'G1103391T1995');
  71. $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_run_stock_test.php",$post_data);
  72. $run_list = json_decode($result,true);
  73. print_r($run_list);
  74. exit();
  75. */
  76. /*
  77. $post_data = array( 'auth_code' => "mBFpLaTbDVHLN654", "run_code" => "G1103515T4702" );
  78. $post_data['ticket_num'] = 1;
  79. $post_data['per_price'] = 220;
  80. $post_data['all_price'] = 220;
  81. $post_data['customer_name'] = "张敏燕";
  82. $post_data['customer_mobile'] = "18058028499";
  83. $post_data['customer_id_no'] = "330903197709033624";
  84. $post_data['ctrip_order_no'] = "2206210990";
  85. $_POST['passengers'] = array();
  86. $_POST['passengers'][] = array( "name" => "张敏燕", "mobile" => "18058028499", "id_no" => "330903197709033624" );
  87. $post_data['passengers'] = json_encode($_POST['passengers']);
  88. $result = send_post("http://api.zhizhuchuxing.com/api1.0/submit_order_test.php",$post_data);
  89. $disp_array = json_decode($result,true);
  90. echo "<hr />";
  91. print_r($disp_array);
  92. exit();
  93. */