|
@@ -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';
|