104 lines
5.4 KiB
XML
104 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<configuration>
|
||
|
||
<!-- log4net配置节声明(必填) -->
|
||
<configSections>
|
||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||
<!-- 宜搭接口配置 -->
|
||
<section name="YiDaConfig" type="System.Configuration.NameValueSectionHandler"/>
|
||
</configSections>
|
||
|
||
<!-- log4net核心配置(精简版:年月日命名+TXT格式) -->
|
||
<log4net>
|
||
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
||
<file value="log/" /> <!-- 仅指定日志文件夹,无前缀 -->
|
||
<appendToFile value="true" />
|
||
<rollingStyle value="Composite" /> <!-- 按日期+大小双维度拆分 -->
|
||
<datePattern value="yyyyMMdd'.txt'" /> <!-- 年月日.txt命名 -->
|
||
<maximumFileSize value="10MB" /> <!-- 单文件最大10MB -->
|
||
<maxSizeRollBackups value="2000" /> <!-- 保留备份数 -->
|
||
<staticLogFileName value="false" /> <!-- 关闭静态文件名,启用日期命名 -->
|
||
<!-- 精简日志格式:时间+级别+消息+异常堆栈(核心排查信息) -->
|
||
<layout type="log4net.Layout.PatternLayout">
|
||
<conversionPattern value="%date [%-5level] - %message%newline%exception" />
|
||
</layout>
|
||
</appender>
|
||
|
||
<!-- 仅记录ERROR级别日志 -->
|
||
<root>
|
||
<level value="ALL" />
|
||
<appender-ref ref="RollingFileAppender" />
|
||
</root>
|
||
</log4net>
|
||
|
||
<!-- 数据库连接配置 -->
|
||
<connectionStrings>
|
||
<add name="MySqlConnection"
|
||
connectionString="server=localhost;port=3306;database=fgassembly2;user=root;password=123456;charset=utf8;SslMode=None;"
|
||
providerName="MySql.Data.MySqlClient"/>
|
||
</connectionStrings>
|
||
|
||
<YiDaConfig>
|
||
<!-- 钉钉配置 -->
|
||
<add key="BaseAddress" value="https://oapi.dingtalk.com"/>
|
||
<add key="TokenAppKey" value="dingcr8jzfkb1pghlzlg"/>
|
||
<add key="TokenAppSecret" value="91GFJd9U_bBIPaGWavCPYwqloLDzREyqhIVaaP7Ds3DgqHSHRmZ9MMpSgmPtqFHv"/>
|
||
<add key="AppType" value="APP_IIUSPFTGU4B8FVAPPT56"/> <!-- 应用编码 -->
|
||
<add key="SystemToken" value="7WF66H917110O27OHFI3R5IP9N7O38GBY8AHM0DX"/> <!-- 应用密钥 -->
|
||
<add key="UserId" value="286193575"/> <!-- 登录人ID -->
|
||
<add key="FormUuid" value="FORM-4FD4C25E9D36410F8F438EB92D11B9DEYOXO"/> <!-- 表单 -->
|
||
<add key="ProcessCode" value="TPROC--PKG66DD1X250F3N6MBWMLAVXTRM22OULY8AHM0"/> <!-- 流程Code -->
|
||
<!-- 钉钉机器人配置 -->
|
||
<add key="DingDingRobotWebHook" value="https://oapi.dingtalk.com/robot/send?access_token=bc00ed6666188a74781aee1ae640e8a897b76148c16cd7aa8fd498f603464b6d"/>
|
||
<add key="DingDingRobotSecret" value="SEC06391233109bd35379f7ed2cbad4289027b0513bdb5e9eb962c437d06c95d22a"/>
|
||
</YiDaConfig>
|
||
|
||
<startup>
|
||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||
</startup>
|
||
<runtime>
|
||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="ExtendedNumerics.BigDecimal" publicKeyToken="65f1315a45ad8949" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-2025.1001.2.129" newVersion="2025.1001.2.129" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Microsoft.IO.RecyclableMemoryStream" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-1.4.2.13" newVersion="1.4.2.13" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Enums.NET" publicKeyToken="7ea1c1650d506225" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||
</dependentAssembly>
|
||
</assemblyBinding>
|
||
</runtime>
|
||
|
||
</configuration> |