Explorar el Código

购买绑定调整

zhangxiaobin hace 1 año
padre
commit
bfd607c7e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;