Jelajahi Sumber

购买绑定调整

zhangxiaobin 1 tahun lalu
induk
melakukan
bfd607c7e3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;