rabin 1 ngày trước cách đây
mục cha
commit
8a047a0ed0

+ 2 - 2
app/Api/Login.php

@@ -38,8 +38,8 @@ class Login
             $info['system_key'] = $system['key'];
             $info['system_id'] = $system['id'];
             $partition = Dever::load(Util::class)->system($info);
-            $db = Dever::db($system['user_table'], '', true, 'default', $partition);
-            $role_db = Dever::db($system['role_table'], '', true, 'default', $partition);
+            $db = Dever::db($system['user_table'], 'default', $partition);
+            $role_db = Dever::db($system['role_table'], 'default', $partition);
         }
         $where['mobile'] = Dever::input('mobile', Dever::rule('mobile'), '手机号');
         $password = Dever::input('password', 'is_string', '密码');

+ 1 - 1
app/Api/Page/Data.php

@@ -44,7 +44,7 @@ class Data extends Page
         $this->column($data);
         return $data;
     }
-    public function out($where)
+    public function out($where = [])
     {
         $set = $this->config['set'] ?? [];
         $data['field'] = $data['head'] = [];

+ 1 - 1
app/Api/Page/Update.php

@@ -44,7 +44,7 @@ class Update extends Page
             if (isset($v['show']) && is_string($v['show'])) {
                 $show[$v['key']] = [$k, $v['show']];
             }
-            if (isset($v['default']) && is_string($v['default']) && strstr($v['default'], '(')) {
+            if (isset($v['default']) && is_string($v['default']) && (strstr($v['default'], '(') || strstr($v['default'], '{'))) {
                 $default[$v['key']] = [$k, $v['default']];
             }
             $data['field'][$v['key']] = $v['value'];

+ 1 - 1
app/Lib/Auth.php

@@ -20,7 +20,7 @@ class Auth
             $info['extend']['info_id'] = 1;
             $info['extend']['module_id'] = 1;
             $info['extend']['data_id'] = 1;
-            Dever::error('请先登录');
+            //Dever::error('请先登录');
         }
         $this->system = Dever::db('manage/system')->find($info['extend']['system_id']);
         if (!$this->system) {

+ 1 - 2
app/Lib/Menu.php

@@ -7,7 +7,6 @@ class Menu
     # 初始化菜单
     public function init($name = '')
     {
-        echo 11;die;
         $config = Dever::config('manage');
         if ($config) {
             $this->add('manage', $config);
@@ -17,12 +16,12 @@ class Menu
         } else {
             $app = Dever::get(Project::class)->read();
         }
-        print_r($app);die;
         foreach ($app as $k => $v) {
             $base = $v['path'] . 'manage/core.php';
             if (is_file($base)) {
                 $core = include $base;
                 if ($core) {
+                    $k = strtolower($k);
                     $this->add($k, $core);
                 }
             }

+ 6 - 2
app/Lib/Page.php

@@ -593,6 +593,10 @@ class Page extends Auth
 
     public function button($key = 'button', $data = [], $default = true)
     {
+        if (empty($this->config[$key])) {
+            return [];
+        }
+        /*
         if (empty($this->config[$key])) {
             $num = 0;
             if (isset($this->db->config['manage']['update']['field'])) {
@@ -611,7 +615,7 @@ class Page extends Auth
             } else {
                 $this->config[$key] = [];
             }
-        }
+        }*/
         $result = [];
         $sort = 1;
         foreach ($this->config[$key] as $k => $v) {
@@ -728,7 +732,7 @@ class Page extends Auth
             if ($i) {
                 $icon = $i;
             }
-            if ($key == 'button' && $data) {
+            if ($key == 'button' && $data && is_array($p)) {
                 if (!$p) {
                     $p = [];
                 }

+ 3 - 3
app/Lib/System.php

@@ -25,7 +25,7 @@ class System extends Auth
             $data['system_id'] = $system['id'];
             $data['info_id'] = $data['id'];
             $data['partition'] = $system['partition'];
-            $db = Dever::db($system['user_table'], '', true, 'default', Dever::load(Util::class)->system($data));
+            $db = Dever::db($system['user_table'], 'default', Dever::load(Util::class)->system($data));
             $info = $db->find(['mobile' => $data['mobile']]);
             if (!$info) {
                 $password = '123456';
@@ -36,7 +36,7 @@ class System extends Auth
                 $db->insert($insert);
             }
 
-            $db = Dever::db($system['role_table'], '', true, 'default', Dever::load(Util::class)->system($data));
+            $db = Dever::db($system['role_table'], 'default', Dever::load(Util::class)->system($data));
             $info = $db->find(['id' => 1]);
             if (!$info) {
                 $insert = [];
@@ -57,7 +57,7 @@ class System extends Auth
                 $set['system_id'] = $system['id'];
                 $set['info_id'] = 1;
                 $set['partition'] = $system['partition'];
-                $db = Dever::db($system['user_table'], '', 'default', Dever::load(Util::class)->system($set));
+                $db = Dever::db($system['user_table'], 'default', Dever::load(Util::class)->system($set));
 
                 $user = $db->find(['mobile' => $data['mobile']]);
                 if ($state && $user) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
assets/static/css/245.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/css/895.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/css/app.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/css/element-plus.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/css/vab-plugins.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/214.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/245.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/89.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/895.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/app.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/element-plus.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-06b9cdb9.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-199b0f51.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-3e2fe043.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-47257c03.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-4e2fb6b0.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-69403744.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-847746f7.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-b886e5fb.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-c5c6856a.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-c81cec27.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-chunk-e3ff9315.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
assets/static/js/vab-plugins.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác