From 32aafb6d8d7a171f52cdc38eec13b8f02e7ab00a Mon Sep 17 00:00:00 2001 From: Bigsk <1332540+bigskcode@user.noreply.gitee.com> Date: Fri, 24 Jul 2020 14:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=97=A0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AF=B7=E6=B1=82=E6=97=B6=E8=BF=94=E5=9B=9E=E7=9A=84?= =?UTF-8?q?json=E5=86=85=E5=AE=B9=20=E6=96=B0=E5=A2=9E=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jump/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jump/index.php b/jump/index.php index 26a0735..e1e4f1f 100644 --- a/jump/index.php +++ b/jump/index.php @@ -2,7 +2,7 @@ session_start(); if($_SERVER['HTTP_HOST'] == 'gemcapi.ghink.net'){ if($_GET['path'] == null){ - echo '{"wikis": "https://gitee.com/ghink/gemcapi/wikis"}'; + echo '{"wikis": "https://gitee.com/ghink/gemcapi/wikis","serverid": "cn-19;gemcapi-jump-s1","servertime": "'.date('Y-m-d H:i:s').'"}'; }else{ if($_GET['token'] == null){ if($_SESSION['times1'] < 11){ @@ -30,7 +30,7 @@ $ipinfo=json_decode($ipinfo); foreach($ipinfo as $ii=>$ii2){ $$ii = $ii2; } -$link=mysqli_connect("localhost","gemcapi","ghink2014","gemcapi"); +$link=mysqli_connect("localhost","gemcapi","ghink2014","gemcapi", 10202); //Deal the data of province_day. $result=mysqli_query($link,"SELECT * FROM `province_day` WHERE `date`='".date("Y-m-d")."'"); if(empty(mysqli_fetch_array($result))){ @@ -1173,5 +1173,4 @@ if(empty(mysqli_fetch_array($result))){ } } } - mysqli_close($link);//Close the link with database. \ No newline at end of file