rabin hai 1 día
pai
achega
fb399390e6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/System.php

+ 2 - 2
lib/System.php

@@ -21,11 +21,11 @@ class System extends Auth
     public function update($system, $db, $data)
     {
         if (isset($data['mobile']) && $data['mobile']) {
-            $system = Dever::db('system', 'manage')->find(array('key' => $param['system']));
+            $system = Dever::db('system', 'manage')->find(array('key' => $system));
             $data['system_id'] = $system['id'];
             $data['info_id'] = $data['id'];
             $data['partition'] = $system['partition'];
-            $db = Dever::db($system['user_table'], '', 'default', Dever::load('common', 'manage')->system($data));
+            $db = Dever::db($system['user_table'], '', true, 'default', Dever::load('common', 'manage')->system($data));
             $info = $db->find(array('mobile' => $data['mobile']));
             if (!$info) {
                 $password = '123456';