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