|
- <?php
- /*
- * wechat 2.0
- * Copyright (c) 2016 yixi wei http://zhizhuchuxing.com/
- * Date: 2016.09.06
- * Something is to pay QQ1062140302
- */
-
- header("Access-Control-Allow-Origin:*");
- //载入配置文件和连接数据库
- date_default_timezone_set('PRC');
- require_once '/usr/share/nginx/ZZFX/wchat_fx/zz-fx/Common/Mysql.php';
- $pdo=conn();
- $arr = range(1,30);
- $disney_ticket_info=array();
- $lion_threater_info = array();
- foreach ($arr as $k=>$v) {
- $date = date('Y-m-d', time()+60*60*24*$k);
- $disney_ticket_info[$date] = get_disney_all_info($date);
-
- $week_day = date( "w", strtotime($date) );
- if( $week_day == 1 ) {
- continue;
- } else if( $week_day == 6 ){
- $show_time_array = array( "13:30", "19:00" );
- } else if( $week_day == 0 ) {
- $show_time_array = array( "13:30", "18:30" );
- } else {
- $show_time_array = array( "19:00" );
- }
- foreach( $show_time_array as $show_time) {
- if( !isset($lion_threater_info[$date]) ) {
- $lion_threater_info[$date] = array();
- }
- $lion_threater_info[$date][$show_time] = get_lion_king_info($date, $show_time);
- }
- }
- set_memcache('disney_ticket_info',$disney_ticket_info);
- set_memcache('lion_threater_info',$lion_threater_info);
|