Commit ca52ab5f authored by 黄奎's avatar 黄奎

页面修改

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