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.
 
 
 
 

32 lines
891 B

  1. <?php
  2. /*
  3. Author:XM
  4. Compeny:Spiders Travel
  5. */
  6. require_once '../Common/Mysql.php';
  7. if (ALLOW_ORIGIN)
  8. header("Access-Control-Allow-Origin:*");
  9. $userid=getUserId();
  10. if ($userid ===false){
  11. echo json_encode(array("code"=>1,"info"=>"用户未登录"));
  12. exit;
  13. }
  14. $lineid=$_GET['lineid'];
  15. $startime=$_GET['startime'];
  16. $endtime=$_GET['endtime'];
  17. $week=$_GET['week'];
  18. $allstation=$_GET['allstation'];
  19. $allcar=$_GET['allcar'];
  20. $allticket=$_GET['allticket'];
  21. $sellday=$_GET['sellday'];
  22. $pdo=conn();
  23. $sql="call sp_bus_run_new_save(".$userid.",".$lineid.",'".$startime."','".$endtime."','".$week."','".$allstation."','".$allcar."','".$allticket."',".$sellday.")";
  24. writeLog("run_bus_new_save: ".$sql);
  25. if (is_object($pdo)) {
  26. $result = $pdo->query($sql);
  27. $rowset = $result->fetchAll(PDO::FETCH_ASSOC);
  28. $data['code'] = "0";
  29. $data['info'] = "";
  30. $data['save'] = $rowset[0];
  31. echo json_encode($data);
  32. }