Quellcode durchsuchen

更新安装sql和安装程序

evoxwht vor 2 Jahren
Ursprung
Commit
acaa45bfaa
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      crmeb/public/install/crmeb.sql
  2. 2 2
      crmeb/public/install/index.php

+ 1 - 1
crmeb/public/install/crmeb.sql

@@ -47134,7 +47134,7 @@ INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `cont
 (4, 0, 'md-cart', '订单', 'admin', 'order', 'index', '', '', '[]', 120, 1, 0, 1, '/order', '', 1, 'home', 1, 'admin-order', 0),
 (5, 4, '', '订单管理', 'admin', 'order.store_order', 'index', '', '', '[]', 10, 1, 0, 1, '/order/list', '4', 1, 'order', 0, 'admin-order-storeOrder-index', 0),
 (6, 1, '', '商品评论', 'admin', 'store.store_product_reply', 'index', '', '', '[]', 0, 1, 0, 1, '/product/product_reply', '', 1, 'product', 0, 'product-product-reply', 0),
-(7, 0, 'md-home', '主页', 'admin', 'index', '', '', '', '[]', 127, 1, 0, 1, '/home', '', 1, 'home', 1, 'admin-index-index', 0),
+(7, 0, 'md-home', '主页', 'admin', 'index', '', '', '', '[]', 127, 1, 0, 1, '/home/', '', 1, 'home', 1, 'admin-index-index', 0),
 (9, 0, 'md-person', '用户', 'admin', 'user.user', '', '', '', '[]', 125, 1, 0, 1, '/user', '', 1, 'user', 1, 'admin-user', 0),
 (10, 9, '', '用户管理', 'admin', 'user.user', 'index', '', '', '[]', 10, 1, 0, 1, '/user/list', '', 1, 'user', 0, 'admin-user-user-index', 0),
 (11, 9, '', '用户等级', 'admin', 'user.user_level', 'index', '', '', '[]', 7, 1, 0, 1, '/user/level', '', 1, 'user', 0, 'user-user-level', 0),

+ 2 - 2
crmeb/public/install/index.php

@@ -401,8 +401,8 @@ switch ($step) {
             $ip = empty($ip) ? "0.0.0.0" : $ip;
             $password = password_hash($_POST['manager_pwd'], PASSWORD_BCRYPT);
             mysqli_query($conn, "truncate table {$dbPrefix}system_admin");
-            $addadminsql = "INSERT INTO `{$dbPrefix}system_admin` (`id`, `account`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `is_del`) VALUES
-(1, '" . $username . "', '" . $password . "', 'admin', '1', '" . $ip . "',$time , $time, 0, 0, 1, 0)";
+            $addadminsql = "INSERT INTO `{$dbPrefix}system_admin` (`id`, `account`, `head_pic`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `is_del`) VALUES
+(1, '" . $username . "', '/statics/system_images/admin_head_pic.png', '" . $password . "', 'admin', '1', '" . $ip . "',$time , $time, 0, 0, 1, 0)";
             $res = mysqli_query($conn, $addadminsql);
             $res2 = true;
             if (isset($_SERVER['SERVER_NAME'])) {