PHP 热更新的简单程序

来源:互联网 发布:mac系统如何倒退 编辑:程序博客网 时间:2024/06/01 10:04
<?phpheader("Content-Type:text/html;charset=utf-8");ini_set ( "display_errors", "on" );$game_version     = $_REQUEST["game_version"];      //渠道idecho testLobbyUpdate($game_version);function testLobbyUpdate($game_version){    $Info = array("type" => 0,"from"=>"test");    $Info['type'] = 0;    $Info['list'] =  array(        //array("version" =>"10.2.18", "url" => "http://localhost:8080/package/Game-10.2.18.zip"),    );    if ( $game_version == "10.0.0" )    {        $Info['type'] = 4;        $Info['list'] =  array(        array("version" =>"10.0.1", "url" => "http://192.168.77.226:8080/package/Game.zip"),        );    }    return  stripslashes(json_encode($Info,JSON_UNESCAPED_UNICODE));}?>
原创粉丝点击