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.
 
 
 
 

26 lines
622 B

  1. <?php
  2. require_once '../../Common/Mysql.php';
  3. if (ALLOW_ORIGIN)
  4. header("Access-Control-Allow-Origin:*");
  5. //$user_id = getUserId();
  6. //if ($user_id == false) {
  7. // echo json_encode(array("code" => 1, "info" => "用户未登录"));
  8. // exit ;
  9. //}
  10. $run_id = isset($_POST['run_id'])?$_POST['run_id']:'21779';
  11. $ifback = isset($_POST['ifback'])?$_POST['ifback']:'0';
  12. $pdo = conn();
  13. $sql = "select max_count,saled_count "
  14. . " from run_main "
  15. . " where run_id = ".$run_id;
  16. $result = $pdo -> query($sql);
  17. $return = $result->fetchAll(PDO::FETCH_ASSOC);
  18. var_dump($return);die;
  19. if($ifback){
  20. }else{
  21. }