From 7c898619706c4a7e125997c9c94f4c2b2596135d Mon Sep 17 00:00:00 2001 From: kf_wuhao <15392746632@qq.com> Date: Tue, 12 Jan 2021 11:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=A3=E4=BA=9B=E4=BA=BA=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E7=BA=BF=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.php | 1 + edit.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/_config.php b/_config.php index d135eeb..194bd41 100644 --- a/_config.php +++ b/_config.php @@ -16,4 +16,5 @@ $DBYFEROLES = $configJson['dbyferoles']; //上线 $SXYYEROLES = $configJson['sxyyeroles']; +$SXAROLES = $configJson['sxaroles']; ?> \ No newline at end of file diff --git a/edit.php b/edit.php index 29cadd2..a88344b 100644 --- a/edit.php +++ b/edit.php @@ -122,6 +122,15 @@ if(!isn(r('msxyyeroles'))){ file_put_contents("config.json",json_encode($configJson)); echo ""; } +//***********************************添加上线卡片*************************************************** +if(!isn(r('sxaroles'))){ + $roles = trim(_r("sxaroles")); + $roles = str_replace("\r","",$roles); + $arr = explode("\n",$roles); + $configJson['sxaroles'] = $arr; + file_put_contents("config.json",json_encode($configJson)); + echo ""; +} //require_once(ROOT.'./_config.php'); ?> @@ -152,6 +161,16 @@ if(!isn(r('msxyyeroles'))){
+