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.
 
 
 
 
 

32 lines
1.2 KiB

  1. <?php
  2. exit();
  3. /*
  4. require_once './php_include/Config2.php';
  5. require_once './php_include/class.db.inc';
  6. require_once './php_include/disney.inc';
  7. require_once './php_include/Function.php';
  8. //DB
  9. $objDbh = new Db;
  10. $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
  11. $objDisney = new DbDisney($objDbh);
  12. $org_array = $objDisney->getBaseOrgArray();
  13. $search_start_time = date("Y-m-d H:i:s", strtotime("+20minutes"));
  14. $ready_to_array = $objDisney->getWarnOrderCommonArray( $search_start_time );
  15. echo "SEND END<br />-----<br />";
  16. foreach( $ready_to_array as $order_common_info ) {
  17. $org_address = $org_array[$order_common_info["org_id"]]["org_address"];
  18. $send_message = sprintf("%s预订的%s迪士尼单日往返直通车在20分钟后将会开出,请在%s等候上车。", $order_common_info["cus_name"], $order_common_info["start_time"], $org_address);
  19. sendTelMessage( $order_common_info["cus_mobile"], $order_common_info["cus_name"], $send_message, $order_common_info["order_serial_no"]);
  20. echo "SEND MESSAGE:".$order_common_info["cus_mobile"].":".$send_message."<br />";
  21. $objDisney->updateOrderCommonInfo( $order_common_info["order_serial_no"], array( "send_warn_message" => 1 ) );
  22. }
  23. echo "-----<br />SEND END";
  24. */
  25. ?>