李昊 4 years ago
parent
commit
dbb4745a3f

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -389,7 +389,7 @@ namespace GxPress.Repository.Implement
                 user.Phone = request.Phone;
             user.QRCoder = StringUtils.RemoveDomain(user.QRCoder);
             if (request.DisableTypeId > 0)
-                user.IsDisable = user.DisableTypeId == 1;
+                user.IsDisable = request.DisableTypeId == 1;
             return await UpdateAsync(user);
         }