|
|
|
|
@ -14,6 +14,8 @@
|
|
|
|
|
</connectionStrings>
|
|
|
|
|
|
|
|
|
|
<appSettings>
|
|
|
|
|
<!-- 禁用 OWIN 自动发现(本项目使用 Global.asax + WebApiConfig) -->
|
|
|
|
|
<add key="owin:AutomaticAppStartup" value="false" />
|
|
|
|
|
<!-- JWT认证密钥,生产环境请更换 -->
|
|
|
|
|
<add key="JwtSecret" value="CncDataSystem_2026_SecretKey_For_Jwt_Token_Generation_Min32Chars" />
|
|
|
|
|
<!-- Token过期时间(小时) -->
|
|
|
|
|
@ -23,6 +25,8 @@
|
|
|
|
|
<system.web>
|
|
|
|
|
<compilation debug="true" targetFramework="4.7.2" />
|
|
|
|
|
<httpRuntime targetFramework="4.7.2" />
|
|
|
|
|
<!-- 临时开启详细错误用于联调 -->
|
|
|
|
|
<customErrors mode="Off" />
|
|
|
|
|
</system.web>
|
|
|
|
|
|
|
|
|
|
<system.webServer>
|
|
|
|
|
@ -40,6 +44,23 @@
|
|
|
|
|
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<!-- MySqlConnector 依赖的程序集绑定重定向 -->
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Memory" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Buffers" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
<dependentAssembly>
|
|
|
|
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" />
|
|
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
|
|
|
|
</dependentAssembly>
|
|
|
|
|
</assemblyBinding>
|
|
|
|
|
</runtime>
|
|
|
|
|
</configuration>
|
|
|
|
|
|