Commit a6eb197e by guanzhenshan

调整记录ip记录

parent 3d83286f
......@@ -36,7 +36,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult GetListSkuGroup([FromBody]Models.SkuGroup.mSkuGroupCondition m)
{
Services.ApiServices.SaveApiLog("Api/GetListSkuGroup", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/GetListSkuGroup", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var total = 0;
var pagesize = 1000;
......@@ -58,7 +58,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult GetListGroup(string name,string country,string warehousetype,string warehousecode)
{
Services.ApiServices.SaveApiLog("Api/GetListGroup", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/GetListGroup", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var result = new Services.SkuMonitorServices().ListGroupName(name,country,warehousetype,warehousecode);
......@@ -72,7 +72,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public string SkuWarehouseRedundancy1()
{
Services.ApiServices.SaveApiLog("Api/SkuWarehouseRedundancy1", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/SkuWarehouseRedundancy1", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var filename = _hostingEnvironment.WebRootPath+"\\Files\\turnfile\\";
......@@ -88,7 +88,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public string SkuWarehouseSales1()
{
Services.ApiServices.SaveApiLog("Api/SkuWarehouseSales1", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/SkuWarehouseSales1", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var filename = _hostingEnvironment.WebRootPath + "\\Files\\turnfile\\skusales.csv";
......@@ -107,7 +107,7 @@ namespace Bailun.DC.Web.Controllers
/// <returns></returns>
public JsonResult ListWeekOutSku(int page, int pagesize, DateTime? start, DateTime? end)
{
Services.ApiServices.SaveApiLog("Api/ListWeekOutSku", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListWeekOutSku", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var total = 0;
var list = new Services.SkuMonitorServices().ListWeedOut(page, pagesize, start, end,ref total);
......@@ -131,7 +131,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListPlatformSkuSales(int page, int pagesize, DateTime? start, DateTime? end,string platform,int companyid)
{
Services.ApiServices.SaveApiLog("Api/ListPlatformSkuSales", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListPlatformSkuSales", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var total = 0;
var obj = new Services.OrdersServices().ListOrderPlatformSku(page, pagesize, start, end,platform,companyid, ref total);
......@@ -167,7 +167,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult SaveSkuDeliverWeighDiff(DateTime? day)
{
Services.ApiServices.SaveApiLog("Api/SaveSkuDeliverWeighDiff", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/SaveSkuDeliverWeighDiff", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var result = new Services.OrdersServices().SaveWeighDiff(day);
......@@ -187,7 +187,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListSalerProfit(DateTime? start, DateTime? end,int companyid)
{
Services.ApiServices.SaveApiLog("Api/ListSalerProfit", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListSalerProfit", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var list = new Services.OrdersServices().ListSalerProfit(start, end,companyid);
return Json(list);
......@@ -203,7 +203,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListItemIdOrderCount([FromBody]Models.Orders.mItemIdOrderCount_Input m)
{
Services.ApiServices.SaveApiLog("Api/ListItemIdOrderCount", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListItemIdOrderCount", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
if (m.itemid.Length > 1000 || m.itemid.Length==0)
{
......@@ -240,7 +240,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListOrderSkuProfit([FromBody]Models.Orders.mShipSkuProfitInput m)
{
Services.ApiServices.SaveApiLog("Api/ListOrderSkuProfit", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListOrderSkuProfit", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
var obj = new Services.OrdersServices().ListOrderSkuProfit(m.page, pagesize, m.start, m.end,m.bailun_order_id);
......@@ -285,7 +285,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListFBASkuProfit([FromBody]Models.Orders.mShipSkuProfitInput m)
{
Services.ApiServices.SaveApiLog("Api/ListFBASkuProfit", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListFBASkuProfit", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
var obj = new Services.OrdersServices().ListFBASkuProfit(m.page, pagesize, m.start, m.end, m.bailun_order_id);
......@@ -335,7 +335,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListEbayFee([FromBody]mEbayFeeInput m)
{
Services.ApiServices.SaveApiLog("Api/ListEbayFee", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListEbayFee", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
try
{
var pagesize = 1000;
......@@ -415,7 +415,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListInterceptItemid(int page,DateTime? start, DateTime? end, string platform = "Aliexpress")
{
Services.ApiServices.SaveApiLog("Api/ListInterceptItemid", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListInterceptItemid", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
var total = 0;
......@@ -454,7 +454,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult GetProfit(DateTime start, DateTime end)
{
Services.ApiServices.SaveApiLog("Api/GetProfit", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/GetProfit", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
try
{
......@@ -496,7 +496,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult EbaySkuSales(int page,DateTime start, DateTime end, string skus, string platform = "Ebay")
{
Services.ApiServices.SaveApiLog("Api/EbaySkuSales", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/EbaySkuSales", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
int pagesize = 1000;
......@@ -539,7 +539,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult SkuSales(int page, DateTime start, DateTime end, string skus, string platform = "Ebay")
{
Services.ApiServices.SaveApiLog("Api/SkuSales", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/SkuSales", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
int pagesize = 1000;
try
......@@ -582,7 +582,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListPuchaseDetail(int page, DateTime start, DateTime end, string suppliername)
{
Services.ApiServices.SaveApiLog("Api/ListPuchaseDetail", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListPuchaseDetail", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
try
......@@ -613,7 +613,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult DailyExchangeRate(DateTime date)
{
Services.ApiServices.SaveApiLog("Api/DailyExchangeRate", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/DailyExchangeRate", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var obj = new Services.CommonServices().ListDateExchangeRate(date);
return Json(new {
......@@ -639,7 +639,7 @@ namespace Bailun.DC.Web.Controllers
[HttpPost]
public JsonResult ListSkuSaleAndReturn(int page,DateTime start,DateTime end,string platform,string bailunsku)
{
Services.ApiServices.SaveApiLog("Api/ListSkuSaleAndReturn", _httpContextAccessor.HttpContext.Connection.LocalIpAddress.ToString());
Services.ApiServices.SaveApiLog("Api/ListSkuSaleAndReturn", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment