feat(web): EQD-6953 BondController计算器调用补source场景日志——平仓页请求带source=unwind(可选参数向后兼容,录入页不传);BondCalcHepler本就记录完整参数/结果/失败原因,补场景维度即可区分入口定位是参数还是别的问题
This commit is contained in:
@@ -7,8 +7,12 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
|
||||
[AllowAnonymous]
|
||||
public JsonResult CalcBond(string underlyingCode, decimal price, string priceType, string targetDate = null)
|
||||
public JsonResult CalcBond(string underlyingCode, decimal price, string priceType, string targetDate = null, string source = null)
|
||||
{
|
||||
// EQD-6953:source 标记调用场景(unwind=平仓页;录入页不传)。BondCalcHepler 已记录
|
||||
// 完整请求参数与成败结果,此处仅补场景维度,定位问题时先按 source 区分入口再看参数。
|
||||
LogFactory.GetLogger("BondController").Info(
|
||||
$"CalcBond source={source ?? "(未标记)"} underlyingCode={underlyingCode} price={price} priceType={priceType} targetDate={targetDate ?? "(空→代理默认T+1)"}");
|
||||
string errorMsg;
|
||||
var obj = BondCalcHepler.BondCalc(underlyingCode, price, priceType, out errorMsg, targetDate);
|
||||
if (obj == null)
|
||||
|
||||
Reference in New Issue
Block a user