<develop>:(ShopERP 端)<无> ShopERP 创建对外的 API 接口。

parent 2465c933
...@@ -66,14 +66,6 @@ namespace CoreCms.Net.Web.WebApi.Infrastructure ...@@ -66,14 +66,6 @@ namespace CoreCms.Net.Web.WebApi.Infrastructure
//使用 SignalR //使用 SignalR
builder.Services.AddSignalR(); builder.Services.AddSignalR();
// 引入Payment 依赖注入(支付宝支付/微信支付)
builder.Services.AddAlipay();
builder.Services.AddWeChatPay();
// 在 appsettings.json 中 配置选项
builder.Services.Configure<WeChatPayOptions>(builder.Configuration.GetSection("WeChatPay"));
builder.Services.Configure<AlipayOptions>(builder.Configuration.GetSection("Alipay"));
// 注入工厂 HTTP 客户端 // 注入工厂 HTTP 客户端
builder.Services.AddHttpClient(); builder.Services.AddHttpClient();
...@@ -105,8 +97,6 @@ namespace CoreCms.Net.Web.WebApi.Infrastructure ...@@ -105,8 +97,6 @@ namespace CoreCms.Net.Web.WebApi.Infrastructure
{ {
//数据格式首字母小写 不使用驼峰 //数据格式首字母小写 不使用驼峰
p.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); p.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
//不使用驼峰样式的key
//p.SerializerSettings.ContractResolver = new DefaultContractResolver();
//忽略循环引用 //忽略循环引用
p.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; p.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
//设置时间格式(必须使用yyyy/MM/dd格式,因为ios系统不支持2018-03-29格式的时间,只识别2018/03/09这种格式。) //设置时间格式(必须使用yyyy/MM/dd格式,因为ios系统不支持2018-03-29格式的时间,只识别2018/03/09这种格式。)
......
{ {
"ConnectionStrings": { "ConnectionStrings": {
"DbType": "MySql", "DbType": "MySql",
// 如果采用容器化部署Service 要写成mysql的服务名,否则写地址
"SqlConnection": "Server=192.168.8.109;Port=3306;Database=ShopERP;Uid=root;Pwd=123456;CharSet=utf8;pooling=true;SslMode=None;Allow User Variables=true;Convert Zero Datetime=True;Allow Zero Datetime=True;" "SqlConnection": "Server=192.168.8.109;Port=3306;Database=ShopERP;Uid=root;Pwd=123456;CharSet=utf8;pooling=true;SslMode=None;Allow User Variables=true;Convert Zero Datetime=True;Allow Zero Datetime=True;"
// Mysql数据库链接字符串,请保持后面的属性别少。经过测试,mysql版本需要5.7或以上
}, },
"Consul": { "Consul": {
"consulAddress": "http://127.0.0.1:8500", "consulAddress": "http://127.0.0.1:8500",
...@@ -13,7 +11,7 @@ ...@@ -13,7 +11,7 @@
}, },
//定时任务管理面板的账户密码 //定时任务管理面板的账户密码
"HangFire": { "HangFire": {
"Login": "ShopERP", "Login": "admin",
"PassWord": "oq9wfbdeasygj647v" "PassWord": "oq9wfbdeasygj647v"
}, },
//Swagger授权访问设置 //Swagger授权访问设置
......
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