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.
 
 
 
 

28 lines
629 B

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