Exemplo n.º 1
0
            $this->weather2 = $info['weather'][1];
            $this->weather3 = $info['weather'][2];
            $this->weather4 = $info['weather'][3];
            $this->weather5 = $info['weather'][4];
            $this->weather6 = $info['weather'][5];
            $this->weather7 = $info['weather'][6];
            $this->img1 = $info['image'][0];
            $this->img2 = $info['image'][1];
            $this->img3 = $info['image'][2];
            $this->img4 = $info['image'][3];
            $this->img5 = $info['image'][4];
            $this->img6 = $info['image'][5];
            $this->img7 = $info['image'][6];
            $this->index1 = $info['suggestion'][0];
            $this->index2 = $info['suggestion'][1];
            $this->index3 = $info['suggestion'][2];
            $this->index4 = $info['suggestion'][3];
            $this->index5 = $info['suggestion'][4];
            $this->index6 = $info['suggestion'][5];
            $this->index7 = $info['suggestion'][6];
        }
    }
}
require_once '../sdk.php';
require_once "../../weather_infos_action.php";
//数据库登录信息
$weather_act = new weather_infos_action("127.0.0.1", "root", "", "BaixingWeather_db");
$recent_info = new info_to_andriod($weather_act->getrecentinfoArray());
//$recent_info=new info_to_andriod();
$msg_des = json_encode($recent_info);
//echo $msg_des;