|
@@ -21,11 +21,11 @@ class System extends Auth
|
|
public function update($system, $db, $data)
|
|
public function update($system, $db, $data)
|
|
{
|
|
{
|
|
if (isset($data['mobile']) && $data['mobile']) {
|
|
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['system_id'] = $system['id'];
|
|
$data['info_id'] = $data['id'];
|
|
$data['info_id'] = $data['id'];
|
|
$data['partition'] = $system['partition'];
|
|
$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']));
|
|
$info = $db->find(array('mobile' => $data['mobile']));
|
|
if (!$info) {
|
|
if (!$info) {
|
|
$password = '123456';
|
|
$password = '123456';
|