| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <configSections>
- <!--activerecord的配置-->
- <section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
- <!--系统的配置-->
- <section name="RewriterRule" type="SiteCore.URLRewriter.UrlsSection, SiteCore" />
- <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
- </configSections>
- <!--log4net 配置-->
- <log4net debug="true">
- <appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net">
- <param name="File" value="C:\inetpub\wwwroot\ecomerp\web\Log\log.txt" />
- <param name="AppendToFile" value="true" />
- <param name="RollingStyle" value="Date" />
- <param name="StaticLogFileName" value="true" />
- <layout type="log4net.Layout.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
- </layout>
- </appender>
- <appender name="DebugAppender" type="log4net.Appender.DebugAppender">
- <layout type="log4net.Layout.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
- </layout>
- </appender>
- <logger name="NHibernate" additivity="false">
- <level value="DEBUG" />
- <appender-ref ref="DebugAppender" />
- </logger>
- <logger name="NHibernate.SQL" additivity="false">
- <level value="DEBUG" />
- <appender-ref ref="DebugAppender" />
- <appender-ref ref="rollingFile" />
- </logger>
- <logger name="NHibernate.AdoNet.AbstractBatcher" additivity="false">
- <level value="DEBUG" />
- <appender-ref ref="DebugAppender" />
- </logger>
- <root>
- <!-- levels: DEBUG, INFO, WARN, ERROR, FATAL -->
- <level value="DEBUG" />
- <appender-ref ref="DebugAppender" />
- <appender-ref ref="rollingFile" />
- </root>
- </log4net>
- <RewriterRule>
- <urls>
- <add virtualUrl="~/app/(\w{3,50})" destinationUrl="~/handler/app.ashx?t=$1" />
- <add virtualUrl="~/erp/(\w{3,50})" destinationUrl="~/handler/erp.ashx?t=$1" />
- <add virtualUrl="~/alipayreturn(\?\w*)*" destinationUrl="~/handler/alipayReturn.ashx$1" />
- <add virtualUrl="~/wxpayReturn(\?\w*)*" destinationUrl="~/handler/wxpayReturn.ashx$1" />
- <add virtualUrl="~/wxpayTakeReturn(\?\w*)*" destinationUrl="~/handler/wxpayTakeReturn.ashx$1" />
- <add virtualUrl="~/corpPayReturn(\?\w*)*" destinationUrl="~/handler/corpPayReturn.ashx$1" />
- </urls>
- </RewriterRule>
- <connectionStrings>
- <!--正式-->
- <!--<add name="ConnString" connectionString="Data Source=127.0.0.1,1433;Initial Catalog=ecomerp;User ID=sa;Password=admin_666888;Max Pool Size=800;Connection Lifetime=120;Min Pool Size=5;" />-->
- <add name="ConnString" connectionString="Data Source=rm-bp1ki6rt7x41b64mp7o.sqlserver.rds.aliyuncs.com,3433;Initial Catalog=ecomerp;User ID=lt_admin;Password=LTao@+666888;Max Pool Size=800;Connection Lifetime=120;Min Pool Size=5;" />
- <add name="XueConnString" connectionString="Data Source=rm-bp1ki6rt7x41b64mp7o.sqlserver.rds.aliyuncs.com,3433;Initial Catalog=ecomerp;User ID=lt_admin;Password=LTao@+666888;Max Pool Size=800;Connection Lifetime=120;Min Pool Size=5;" />
- <add name="RedisConn" connectionString="127.0.0.1:6379,password=abc123abc,allowAdmin=true" />
- </connectionStrings>
- <appSettings>
- <add key="vs:EnableBrowserLink" value="false" />
- <add key="ImagePath" value="C:\inetpub\wwwroot\ecomerp\document" />
- <add key="wsPath" value="C:\inetpub\wwwroot\ecomerp\document\ws" />
- <add key="SiteBasePath" value="C:\inetpub\wwwroot\ecomerp\web" />
- <add key="CookieName" value="lterpCookie" />
- <add key="SiteName" value="领淘" />
- <add key="SiteDomain" value="" />
- <add key="framework" value="C:\inetpub\wwwroot\ecomerp\web\Framework" />
- <add key="UmPicPath" value="C:\inetpub\wwwroot\ecomerp\document\um" />
- <add key="SiteUrl" value="http://47.114.150.226:88" />
- <!--<add key="SiteUrl" value="http://127.0.0.1:911" />-->
- <add key="SiteVersion" value="1.3.68" />
- <add key="GetTmc" value="0" />
- <add key="ApplyState" value="0" />
- <add key="RedisConn" value="127.0.0.1:6379,allowadmin=true" />
- <!--拿样跟现货的供货商-->
- <add key="SampleOrderSupplier" value="35" />
- <!--老客户,下单部设计师id-->
- <add key="PlaceDesigner_id" value="188" />
- <!--老客户,改稿下单部id-->
- <add key="PlaceChangeId" value="0" />
- <!--老客户,系统识别到的,给下单部的id-->
- <add key="PlaceOldCusId" value="1459" />
- <!--老客户,系统识别到的,部分店铺的单给某个人-->
- <!--<add key="OldCusPartShopId" value=",11,15,16," />-->
- <!--老客户,系统识别到的,部分店铺的单给这个设计师-->
- <!--<add key="OldCusPartShopDesigner" value="159" />-->
- <!--老客户,系统识别到的,部分店铺的单给某个人-->
- <add key="OldCusPartShopId" value=",15," />
- <!--卓胜-->
- <add key="OldCusPart1ShopId" value=",11,"/>
- <!--航和-->
- <add key="OldCusPart2ShopId" value=",16,"/>
- <!--竹范-->
- <!--老客户,系统识别到的,部分店铺的单给这个设计师-->
- <add key="OldCusPartShopDesigner" value="159" />
- <!--林晨-->
- <add key="OldCusPartShopDesigner1" value="157" />
- <!--赖橙帆-->
- <add key="OldCusPartShopDesigner2" value="159" />
- <!--下单部的id-->
- <add key="PlaceOrgId" value="4" />
- <!--组织部的id-->
- <add key="OrgId" value="10" />
- <!--凤九贴 供应商id-->
- <add key="Fengjiutie_supid" value="35" />
- <!--文件服务器-->
- <add key="LocalDownLoadUrl" value="http://localhost:54673//download.aspx"/>
- <add key="LocalSimDownLoadUrl" value="http://192.168.10.10:8088/simdownload.aspx"/>
- <add key="LocalFileSiteUrl" value="http://192.168.10.10:8088/"/>
- <add key="LocalUploadUrl" value="http://192.168.10.10:8088/uploadFile.aspx"/>
- <add key="LocalSimUploadUrl" value="http://192.168.10.10:8088/simUploadFile.aspx"/>
- <add key="SimDownLoadUrl" value="http://183.250.143.56:8088/simdownload.aspx"/>
- <!--<add key="DownLoadUrl" value="http://localhost:54673//download.aspx"/>-->
- <add key="DownLoadUrl" value="http://183.250.143.56:8088/download.aspx"/>
- <add key="FileSiteUrl" value="http://183.250.143.56:8088/"/>
- <add key="UploadUrl" value="http://183.250.143.56:8088/uploadFile.aspx"/>
- <add key="SimUploadUrl" value="http://183.250.143.56:8088/simUploadFile.aspx"/>
- <!--退款定时任务-->
- <add key="Refund_Switch" value="0" />
- <add key="Refund_Interval" value="35000" />
- <add key="Refund_Time" value="01,06,08,12,15,18,20,22" />
- <!--订单异常处理定时任务-->
- <add key="UnusualOrder_Switch" value="0" />
- <add key="UnusualOrder_Interval" value="3000000" />
- <add key="UnusualOrder_CheckDesignSQL" value="update view_CheckUnusualOrder set unusualTag = 1, UnusualTime = DATEADD(hh,sjzTime,pay_time) where orderstate < 5 and unusualTag = 0 and DATEADD(hh,sjzTime,pay_time)<GETDATE()" />
- <add key="UnusualOrder_CheckPlaceSQL" value="update view_CheckUnusualOrder set unusualTag = 1, UnusualTime = DATEADD(hh,sjzTime,FinishDesignTime) where orderstate = 5 and unusualTag = 0 and DATEADD(hh,sjzTime,FinishDesignTime)<GETDATE()" />
- <add key="UnusualOrder_CheckDeliverySQL" value="update view_CheckUnusualOrder set unusualTag = 1, UnusualTime = DATEADD(hh,sjzTime,FinishPlaceTime) where orderstate = 6 and unusualTag = 0 and DATEADD(hh,sjzTime,FinishPlaceTime)<GETDATE()" />
- <!--自动派单定时任务-->
- <add key="Dispatch_Switch" value="0" />
- <add key="Dispatch_Interval" value="40000" />
- <add key="Dispatch_TimeList" value="09:10,09:30,10:00,10:30,11:00,11:30,12:00,12:30,13:00,13:30,14:00,14:30,15:00,15:30,16:00,16:30" />
- <!--每日清除数据任务-->
- <add key="DayClear_Switch" value="0" />
- <add key="DayClear_Interval" value="50000" />
- <add key="DayClear_Time" value="02:00,03:00,04:30,05:00" />
- <!--日接单量=0 可接单百分比=1 上班状态=0-->
- <add key="DayClear_ClearSQL" value="update CE_ErpUserInfo set DayOrderReceive = 0, DayOrderPer = 0, OnDuty = 0" />
- </appSettings>
- <!--activerecord的配置-->
- <activerecord>
- <config>
- <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
- <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
- <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
- <add key="hibernate.connection.connection_string" value="ConnectionString = ${XueConnString}" />
- </config>
- </activerecord>
- <location>
- <system.web>
- <compilation targetFramework="4.8" debug="true" />
- <!--
- <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
- -->
- <!--
- The <authentication> section enables configuration
- of the security authentication mode used by
- ASP.NET to identify an incoming user.
- -->
- <authentication mode="Windows" />
- <!--
- The <customErrors> section enables configuration
- of what to do if/when an unhandled error occurs
- during the execution of a request. Specifically,
- it enables developers to configure html error pages
- to be displayed in place of a error stack trace.
- -->
- <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm">
- <error statusCode="403" redirect="NoAccess.htm" />
- <error statusCode="404" redirect="FileNotFound.htm" />
- </customErrors>
- <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
- <controls>
- <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add tagPrefix="web" namespace="WebUI.WebControls" assembly="WebUI" />
- </controls>
- </pages>
- <httpHandlers>
- <remove verb="*" path="*.asmx" />
- <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- </httpHandlers>
- <httpModules>
- <!--<remove name="Session" />-->
- <remove name="WindowsAuthentication" />
- <remove name="PassportAuthentication" />
- <remove name="AnonymousIdentification" />
- <remove name="UrlAuthorization" />
- <remove name="FileAuthorization" />
- <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- </httpModules>
- <httpRuntime requestValidationMode="2.0" maxRequestLength="2097151" executionTimeout="300" appRequestQueueLimit="100" />
- </system.web>
- </location>
- <!--
- The system.webServer section is required for running ASP.NET AJAX under Internet
- Information Services 7.0. It is not necessary for previous version of IIS.
- -->
- <location>
- <system.webServer>
- <validation validateIntegratedModeConfiguration="false" />
- <modules runAllManagedModulesForAllRequests="false">
- <remove name="ScriptModule" />
- <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add name="RewriterModule" type="SiteCore.URLRewriter.RewriterModule, SiteCore" />
- </modules>
- <handlers>
- <remove name="HttpHandler-32" />
- <remove name="HttpHandler" />
- <remove name="WebServiceHandlerFactory-Integrated" />
- <remove name="ScriptHandlerFactory" />
- <remove name="ScriptHandlerFactoryAppServices" />
- <remove name="ScriptResource" />
- <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <add name="LcHandler" verb="*" path="handler/*.ashx" type="SiteCore.WebHttpHandler,SiteCore" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
- <add name="loginHandler" path="login.html" verb="GET" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode" />
- </handlers>
- <defaultDocument>
- <files>
- <clear />
- <add value="index.html" />
- <add value="index.aspx" />
- <add value="/" />
- <add value="default.aspx" />
- </files>
- </defaultDocument>
- <httpProtocol allowKeepAlive="true">
- <customHeaders>
- </customHeaders>
- </httpProtocol>
- </system.webServer>
- </location>
- <!--
- 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
- 可在 <httpRuntime> 标记上设置以下特性。
- <system.Web>
- <httpRuntime targetFramework="4.5" />
- </system.Web>
- -->
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- </configuration>
|