修复 获取用户加价规则 包含子账号

This commit is contained in:
chfei committed 2026-11-18 15:20:35 +08:00
1 parent 2f21292b3c
commit 463a037038
1 file changed
+1 -1
@@ -497,7 +497,7 @@ public partial class UserService
{ {
GetDefaultFloorPrice(paymentType); GetDefaultFloorPrice(paymentType);
if (string.IsNullOrWhiteSpace(userName)) throw new ArgumentException("用户名不能为空", nameof(userName)); if (string.IsNullOrWhiteSpace(userName)) throw new ArgumentException("用户名不能为空", nameof(userName));
var user = GetUserByUserName(userName) ?? throw new InvalidOperationException("用户不存在"); var user = GetMainUser(userName) ?? throw new InvalidOperationException("用户不存在");
var rules = GetUserMarkupRules(user, paymentType); var rules = GetUserMarkupRules(user, paymentType);
var parentOemId = string.IsNullOrWhiteSpace(user.OemId) var parentOemId = string.IsNullOrWhiteSpace(user.OemId)
? null : GetOEMByOemId(user.OemId, false)?.ParentOemId; ? null : GetOEMByOemId(user.OemId, false)?.ParentOemId;