zhangkun лет назад: 5
Родитель
Сommit
36f8cfb69b

+ 1 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/Order/OrderController.cs

266
                         {
266
                         {
267
                             string[] tagarry = modelProduct.F_Tag.Split(',');
267
                             string[] tagarry = modelProduct.F_Tag.Split(',');
268
                             string tag = tagarry.First(a => a.StartsWith(".")).ToString();
268
                             string tag = tagarry.First(a => a.StartsWith(".")).ToString();
269
-                            T_Sys_Marketing modelactive = await bus_MarketingRepository.GetSingle(b => ("," + b.F_Commodity + ",").Contains(("," + tag + ",")));
269
+                            T_Sys_Marketing modelactive = await bus_MarketingRepository.GetSingle(b => ("," + b.F_Commodity + ",").Contains("," + tag + ",")&&b.F_IsDelete==0);
270
 
270
 
271
                             //此商品参加活动
271
                             //此商品参加活动
272
                             if (modelactive != null)
272
                             if (modelactive != null)

+ 1 - 0
代码/TVShoppingCallCenter_ZLJ/Startup.cs

48
                 options.AddPolicy("Cors",
48
                 options.AddPolicy("Cors",
49
                 builder => builder.AllowAnyOrigin()//builder.WithOrigins(Configuration["Cors"].Split(','))
49
                 builder => builder.AllowAnyOrigin()//builder.WithOrigins(Configuration["Cors"].Split(','))
50
                 .AllowAnyMethod()
50
                 .AllowAnyMethod()
51
+                .SetIsOriginAllowed(_=>true)//上线后删除此行 加入域列表 内网可忽略
51
                 .AllowAnyHeader()
52
                 .AllowAnyHeader()
52
                 .AllowCredentials().SetPreflightMaxAge(TimeSpan.FromMinutes(30)));
53
                 .AllowCredentials().SetPreflightMaxAge(TimeSpan.FromMinutes(30)));
53
             });
54
             });