mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 10:54:46 +08:00
fix #I3SKUV 增加API和EF执行效率的监控
新增流程修改接口 增加启动及撤销判定
This commit is contained in:
@@ -119,7 +119,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
|
||||
//添加或修改
|
||||
[HttpPost]
|
||||
public string Update(FlowInstance obj)
|
||||
public string Update(UpdateFlowInstanceReq obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Autofac.Extensions.DependencyInjection;
|
||||
using Infrastructure.Helpers;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -37,7 +38,10 @@ namespace OpenAuth.Mvc
|
||||
.UseServiceProviderFactory(new AutofacServiceProviderFactory()) //将默认ServiceProviderFactory指定为AutofacServiceProviderFactory
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseUrls("http://*:1802").UseStartup<Startup>();
|
||||
var configuration = ConfigHelper.GetConfigRoot();
|
||||
var httpHost = configuration["AppSetting:HttpHost"];
|
||||
webBuilder.UseUrls(httpHost).UseStartup<Startup>();
|
||||
Console.WriteLine($"启动成功,访问地址:{httpHost}");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
"Version": "demo",
|
||||
"DbTypes": {
|
||||
"OpenAuthDBContext":"MySql" //数据库类型:SqlServer、MySql、Oracle
|
||||
}
|
||||
},
|
||||
"RedisConf": "redistest.cq-p.com.cn:8001,password=share_redis@123", //redis配置
|
||||
"HttpHost": "http://*:1802" //启动绑定地址及端口
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
"Version": "1.0", //如果为demo,则可以防止post提交
|
||||
"DbTypes": {
|
||||
"OpenAuthDBContext":"SqlServer" //数据库类型:SqlServer、MySql、Oracle
|
||||
}
|
||||
},
|
||||
"RedisConf": "redistest.cq-p.com.cn:8001,password=share_redis@123", //redis配置
|
||||
"HttpHost": "http://*:1802" //启动绑定地址及端口
|
||||
}
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ layui.config({
|
||||
btn: ['火速围观'],
|
||||
moveType: 1,
|
||||
content: '<div style="padding:15px 20px; text-align:justify; line-height: 22px; text-indent:2em;border-bottom:1px solid #e2e2e2;">' +
|
||||
'<p>郑重提示:OpenAuth.Core 2.0新版上线,如以前访问过本站点请清空缓存后访问</p>' +
|
||||
'<p>郑重提示:OpenAuth.Core 3.1新版上线,如以前访问过本站点请清空缓存后访问</p>' +
|
||||
'<p>喜欢的,快快star吧!</p></div>',
|
||||
success: function(layero){
|
||||
var btn = layero.find('.layui-layer-btn');
|
||||
|
||||
Reference in New Issue
Block a user