Commit ca52ab5f authored by 黄奎's avatar 黄奎

页面修改

parent 94d7ed62
...@@ -10,6 +10,7 @@ using System; ...@@ -10,6 +10,7 @@ using System;
using Mall.Common.Plugin; using Mall.Common.Plugin;
using System.Collections.Generic; using System.Collections.Generic;
using Mall.Module.User; using Mall.Module.User;
using Microsoft.AspNetCore.Authorization;
namespace Mall.WebApi.Controllers.MarketingCenter namespace Mall.WebApi.Controllers.MarketingCenter
{ {
...@@ -324,6 +325,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter ...@@ -324,6 +325,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter
#region 损益核算表 #region 损益核算表
[HttpPost] [HttpPost]
[AllowAnonymous]
public ApiResult GetOrderProfitLossList() public ApiResult GetOrderProfitLossList()
{ {
var parms = RequestParm; var parms = RequestParm;
...@@ -352,6 +354,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter ...@@ -352,6 +354,7 @@ namespace Mall.WebApi.Controllers.MarketingCenter
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[AllowAnonymous]
public FileContentResult GetOrderProfitLossExcel() public FileContentResult GetOrderProfitLossExcel()
{ {
var parms = RequestParm; var parms = RequestParm;
......
...@@ -13,6 +13,7 @@ using Mall.Module.Finance; ...@@ -13,6 +13,7 @@ using Mall.Module.Finance;
using Mall.Module.Product; using Mall.Module.Product;
using Mall.Module.User; using Mall.Module.User;
using Mall.WebApi.Filter; using Mall.WebApi.Filter;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json; using Newtonsoft.Json;
...@@ -187,6 +188,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -187,6 +188,7 @@ namespace Mall.WebApi.Controllers.User
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[AllowAnonymous]
public ApiResult GetSupplierAllList() public ApiResult GetSupplierAllList()
{ {
var parms = RequestParm; var parms = RequestParm;
......
...@@ -55,7 +55,9 @@ namespace Mall.WebApi ...@@ -55,7 +55,9 @@ namespace Mall.WebApi
"http://www.test.com:8081", "http://www.test.com:8081",
"http://yx.oytour.com", "http://yx.oytour.com",
"http://mall.oytour.com", "http://mall.oytour.com",
"http://testmall.oytour.com" "http://testmall.oytour.com",
"http://yx.oytour.com",
}; };
services.AddCors(options => options.AddPolicy("AllowCors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().WithOrigins(corsArray.ToArray()))); services.AddCors(options => options.AddPolicy("AllowCors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().WithOrigins(corsArray.ToArray())));
} }
......
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