fix: 更新错误消息格式和数据库连接配置
修改错误消息格式以包含更详细的错误信息 更新生产环境和代码生成环境的数据库连接配置
This commit is contained in:
@@ -201,7 +201,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return ToResponse(ResultCode.GLOBAL_ERROR, "内容错误,请仔细检测格式,并联系管理员" + ex.Message);
|
return ToResponse(ResultCode.GLOBAL_ERROR, "内容错误,请仔细检测格式,并联系管理员,错误内容:" + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return SUCCESS(null);
|
return SUCCESS(null);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
//"Conn": "Data Source=147.116.122.230;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
//"Conn": "Data Source=147.116.122.230;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
||||||
//"Conn": "Data Source=47.116.122.230;Port=3307;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
//"Conn": "Data Source=47.116.122.230;Port=3307;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
||||||
//"Conn": "Data Source=192.168.60.251;Port=3306;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
//"Conn": "Data Source=192.168.60.251;Port=3306;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
|
||||||
"Conn": "Data Source=139.224.232.211;User ID=root;Password=ZRtech123;Initial Catalog=shgx_injection_mes_db;Port=3308",
|
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ZrAdmin;Port=3308",
|
||||||
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||||
"ConfigId": "0", //多租户唯一标识
|
"ConfigId": "0", //多租户唯一标识
|
||||||
"IsAutoCloseConnection": true
|
"IsAutoCloseConnection": true
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
//代码生成数据库配置
|
//代码生成数据库配置
|
||||||
"CodeGenDbConfig": {
|
"CodeGenDbConfig": {
|
||||||
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
|
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
|
||||||
"Conn": "Data Source=47.116.122.230;User ID=root;Password=123456;Initial Catalog={dbName};",
|
"Conn": "Data Source=139.224.232.211;User ID=root;Password=123456;Initial Catalog={dbName};",
|
||||||
"DbType": 0,
|
"DbType": 0,
|
||||||
"IsAutoCloseConnection": true,
|
"IsAutoCloseConnection": true,
|
||||||
"DbName": "ZrAdmin" //代码生成默认连接数据库
|
"DbName": "ZrAdmin" //代码生成默认连接数据库
|
||||||
|
|||||||
Reference in New Issue
Block a user