From ec79f9b1eec05b5f692dcdeefe3aea3c3c1cda3c Mon Sep 17 00:00:00 2001 From: hdm Date: Mon, 28 Mar 2022 19:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E7=B3=BB=E7=BB=9F=E6=97=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=9D=E5=A7=8B=E5=8C=96=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=80=85=E7=9A=84=E5=91=98=E5=B7=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/install/controller/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/install/controller/Index.php b/app/install/controller/Index.php index d0c2963..a6b2376 100644 --- a/app/install/controller/Index.php +++ b/app/install/controller/Index.php @@ -117,9 +117,9 @@ class Index $update_time = time(); $create_admin_sql = "INSERT INTO " . $data['DB_PREFIX'] . "admin " . - "(username,salt,pwd,name,nickname,position_id,did,sex,mobile,thumb,create_time,update_time)" + "(username,salt,pwd,name,nickname,position_id,did,sex,mobile,type,thumb,create_time,update_time)" . "VALUES " - . "('$username','$salt','$password','$name','$nickname',1,1,1,'13800138000','$thumb','$create_time','$update_time')"; + . "('$username','$salt','$password','$name','$nickname',1,1,1,'13800138000',1,'$thumb','$create_time','$update_time')"; if (!$link->query($create_admin_sql)) { return to_assign(1, '创建管理员信息失败'); }