|
@@ -26,7 +26,7 @@ class System extends Auth
|
|
|
$data['info_id'] = $data['id'];
|
|
|
$data['partition'] = $system['partition'];
|
|
|
$db = Dever::db($system['user_table'], '', 'default', Dever::load('common', 'manage')->system($data));
|
|
|
- $info = $db->find(1);
|
|
|
+ $info = $db->find(array('mobile' => $data['mobile']));
|
|
|
if (!$info) {
|
|
|
$password = '123456';
|
|
|
$insert['name'] = Str::hide($data['mobile']);
|