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
411 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Steven
  5. * Date: 2016/8/17
  6. * Time: 14:40
  7. * 每天凌晨更新昨天的ticket信息为不可售
  8. */
  9. require_once '../Common/Mysql.php';
  10. require_once '../Common/zizai_orderAPI.php';
  11. error_reporting(0);
  12. $sql = "UPDATE outside_run SET cancel_flag=1 WHERE cancel_flag=0 AND start_date<CURDATE()";
  13. $pdo2 = conn();
  14. if (is_object($pdo2)) {
  15. $result = $pdo2->exec($sql);
  16. }