|
@@ -5,18 +5,11 @@ namespace Heanup\Config;
|
|
|
|
|
|
|
|
|
|
|
|
|
use Heanup\Frame\Config;
|
|
use Heanup\Frame\Config;
|
|
|
-use Heanup\Library\Curl;
|
|
|
|
|
|
|
|
|
|
class Proxy extends Config
|
|
class Proxy extends Config
|
|
|
{
|
|
{
|
|
|
public static function getData($section = null)
|
|
public static function getData($section = null)
|
|
|
{
|
|
{
|
|
|
-// return "myhome.97admin.com:34185";
|
|
|
|
|
- $rand=rand(1,5);
|
|
|
|
|
- if ($rand==1){
|
|
|
|
|
- define("USE_HOME", true);
|
|
|
|
|
- return "myhome.97admin.com:34185";
|
|
|
|
|
- }
|
|
|
|
|
define("USE_HOME", false);
|
|
define("USE_HOME", false);
|
|
|
$data = file_get_contents("http://myhome.97admin.com:5010/get/");
|
|
$data = file_get_contents("http://myhome.97admin.com:5010/get/");
|
|
|
$data = json_decode($data, true);
|
|
$data = json_decode($data, true);
|