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'))){
+