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.
 
 
 
 

17 lines
526 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Redstop
  5. * Date: 2016/10/12
  6. * Time: 09:00
  7. * 每天中午12点更新两天后的黄山ticket信息为不可售
  8. */
  9. require_once __DIR__.'/../Common/Mysql.php';
  10. $current_day = date("Y-m-d");
  11. $limit_day = date("Y-m-d", strtotime($current_day." +2 days"));
  12. $sql = "UPDATE outside_run SET cancel_flag=1 WHERE cancel_flag=0 AND start_date<='{$limit_day}' AND line_code IN('HSHH01','HSPT01','HSHH02','HSPT02') ";
  13. $pdo2 = conn();
  14. if (is_object($pdo2)) {
  15. $result = $pdo2->exec($sql);
  16. }