diff --git a/config/.config.php.example b/config/.config.php.example index a441718..73c6e68 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -213,7 +213,7 @@ $System_Config['reg_protocol_param']=''; $System_Config['reg_obfs']='http_simple'; #注册时默认混淆参数 -$System_Config['reg_obfs_param']='baidu.com'; +$System_Config['reg_obfs_param']='jd.hk'; #注册时默认禁止访问IP列表,半角英文逗号分割 $System_Config['reg_forbidden_ip']='127.0.0.0/8,::1/128'; diff --git a/sql/sspanel.sql b/sql/sspanel.sql index 3e242d2..5058dd8 100644 --- a/sql/sspanel.sql +++ b/sql/sspanel.sql @@ -98,7 +98,7 @@ CREATE TABLE IF NOT EXISTS `bought` ( CREATE TABLE IF NOT EXISTS `code` ( `id` bigint(20) NOT NULL, - `code` text NOT NULL, + `code` varchar(128) NOT NULL UNIQUE, `type` int(11) NOT NULL, `number` decimal(11,2) NOT NULL, `isused` int(11) NOT NULL DEFAULT '0',