|
- <?php
- /*
- Author:XM
- Compeny:Spiders Travel
- */
- require_once '../Common/Mysql.php';
- if (ALLOW_ORIGIN)
- header("Access-Control-Allow-Origin:*");
- $userid=getUserId();
- if ($userid ===false){
- echo json_encode(array("code"=>1,"info"=>"Óû§Î´µÇ¼"));
- exit;
- }
- $myprod=$_GET['prod'];
- $mycustomer=$_GET['customer'];
- $pdo=conn();
- $sql="call sp_make_order(".$userid.",'".$myprod."',".$mycustomer.")";
-
- writeLog("sp_make_order: ".$sql);
- if (is_object($pdo)){
- $result=$pdo->query($sql);
- $rowset=$result->fetchAll(PDO::FETCH_ASSOC);
- echo json_encode($rowset[0]);
- }
-
-
-
-
-
-
|