修复 获取价格规则 默认 oemid=null
This commit is contained in:
1 parent
9f8e656fcf
commit
26ac4c60d5
1 file changed
+9
-1
@@ -74,7 +74,15 @@ namespace KJD_Web.Controllers
|
||||
if (!ModelState.IsValid) return Ok(ApiResult.Fail("请求参数格式错误", ResultCode.ValidationError));
|
||||
try
|
||||
{
|
||||
return Ok(ApiResult.Success(data: _userService.GetUserMarkups(request.UserName, request.PaymentType)));
|
||||
var data = _userService.GetUserMarkups(request.UserName, request.PaymentType);
|
||||
if (data.Length > 0)
|
||||
{
|
||||
foreach (var item in data)
|
||||
{
|
||||
item.OemId = item.OemId == "00000000" ? null : item.OemId;
|
||||
}
|
||||
}
|
||||
return Ok(ApiResult.Success(data: data));
|
||||
}
|
||||
catch (ArgumentException ex)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user