添加后台代理代码
This commit is contained in:
39
codes/agent/game/dlweb/api/public/public_data.php
Normal file
39
codes/agent/game/dlweb/api/public/public_data.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: win7
|
||||
* Date: 2017-07-06
|
||||
* Time: 11:36
|
||||
*/
|
||||
|
||||
class publicData
|
||||
{
|
||||
public static $_instance;
|
||||
public $game_config;
|
||||
private function __construct()
|
||||
{
|
||||
//ts待定2021
|
||||
$this->game_config = file_get_contents('update_jsonv2.txt');
|
||||
//$url = 'http://ylyxservice1.willgames.cn/config/update_json.txt?v='.time();
|
||||
//$this->game_config = file_get_contents($url);
|
||||
}
|
||||
|
||||
private function __clone()
|
||||
{
|
||||
// TODO: Implement __clone() method.
|
||||
}
|
||||
|
||||
public static function getInstance()
|
||||
{
|
||||
if (!(self::$_instance instanceof self)) {
|
||||
self::$_instance = new self();
|
||||
}
|
||||
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
public function getConfig()
|
||||
{
|
||||
return $this->game_config;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user