|
@@ -36,7 +36,7 @@ class UserService
|
|
|
$userId = isset($params['user_id']) ? $params['user_id'] : 0;
|
|
|
$companyId = isset($params['company_id']) ? $params['company_id'] : 0;
|
|
|
$where['id'] = $userId;
|
|
|
- $user = Db::name('user')->where($where['id'])->find();
|
|
|
+ $user = Db::name('user')->where($where)->find();
|
|
|
if (!empty($user)) {
|
|
|
if ($user['company_id'] != $companyId) {
|
|
|
$userData['company_id'] = $companyId;
|