|
- <?php
- //暂时未用
- require_once '../../Common/Mysql.php';
- if (ALLOW_ORIGIN)
- header("Access-Control-Allow-Origin:*");
- //$user_id = getUserId();
- //if ($user_id == false) {
- // echo json_encode(array("code" => 1, "info" => "用户未登录"));
- // exit ;
- //}
- $run_id = isset($_POST['run_id']) ? $_POST['run_id'] : '21779';
- $ifback = isset($_POST['ifback']) ? $_POST['ifback'] : '0';
-
- $pdo = conn();
- $sql = "select max_count,saled_count "
- . " from run_main "
- . " where run_id = " . $run_id;
- $result = $pdo->query($sql);
- $return = $result->fetchAll(PDO::FETCH_ASSOC);
- var_dump($return);
- die;
- if ($ifback) {
-
- } else {
-
-
- }
|