zhangxiaobin пре 1 година
родитељ
комит
bfd607c7e3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/common/service/UserService.php

+ 1 - 1
application/common/service/UserService.php

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