174 lines
9.0 KiB
XML
174 lines
9.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<configSections>
|
|
<section name="redis" type="WX.CRM.DAL.Redis.RedisConfigurationSection, DAL, Version=1.0.0.0, Culture=neutral" />
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
<!--<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />-->
|
|
</configSections>
|
|
<connectionStrings>
|
|
<add name="crmContext" connectionString="DATA SOURCE=192.168.11.41:1521/Orcl_TG;PERSIST SECURITY INFO=True;USER ID=UPDEV;PASSWORD=sa123456." providerName="Oracle.ManagedDataAccess.Client" />
|
|
<!--<add name="AYCRMConn2" connectionString="DATA SOURCE=192.168.11.85:1521/orcl;PERSIST SECURITY INFO=True;USER ID=UPDEV;PASSWORD=sa123456." providerName="Oracle.ManagedDataAccess.Client"/>
|
|
<add name="AYCRMConn" connectionString="Database=WeiXin;Server=192.168.11.88;UID=sa;Password=sa123456.;" providerName="System.Data.SqlClient"/>-->
|
|
<add name="MysqlQWConn" connectionString="Server=192.168.11.86;uid=root;pwd=Sa123456.;database=wework;port=3306;sslmode=none" providerName="MySql.Data.MySqlClient" />
|
|
</connectionStrings>
|
|
<redis>
|
|
<add name="Redis0" connectionString="192.168.11.45:6379" db="0" />
|
|
</redis>
|
|
<appSettings>
|
|
<add key="ConStringEncrypt" value="false" />
|
|
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
|
|
<!--是否加密 0为不加密 1为加密-->
|
|
<add key="withencypt" value="1" />
|
|
<!--CRM号码加密key(clientKey)-->
|
|
<add key="CRMClientKey" value="TDORDERSITE" />
|
|
<!--一部注册接口-->
|
|
<add key="ChangShaRegUser1" value="http://localhost:15102/ResourceService.svc/SyncRegUser" />
|
|
<!--二部注册接口-->
|
|
<add key="ChangShaRegUser2" value="http://localhost:15102/ResourceService.svc/SyncRegUser" />
|
|
<!--是否分系统-->
|
|
<add key="ChangShaIsPart" value="false" />
|
|
<!--推送部门编码-->
|
|
<add key="DataClientCode" value="DNG8" />
|
|
<!--推送接口-->
|
|
<add key="DataSyncApiUrl" value="http://192.168.11.45:8090" />
|
|
</appSettings>
|
|
<!--
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
|
|
|
可在 <httpRuntime> 标记上设置以下特性。
|
|
<system.Web>
|
|
<httpRuntime targetFramework="4.5.2" />
|
|
</system.Web>
|
|
-->
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.5.2" />
|
|
<httpRuntime targetFramework="4.5.2" />
|
|
</system.web>
|
|
<system.serviceModel>
|
|
<services>
|
|
<service name="RiaService.ResourceService">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="RiaServiceLibrary.IResourceService" />
|
|
</service>
|
|
<service name="RiaService.CallRecord">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="HttpJsonpBinding" contract="RiaServiceLibrary.ICallRecord" />
|
|
</service>
|
|
<service name="RiaService.SmsService">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="RiaServiceLibrary.ISmsService" />
|
|
</service>
|
|
<service name="RiaService.WeiXinService" behaviorConfiguration="ServiceBehaviour">
|
|
<endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" contract="RiaServiceLibrary.IWeiXinService" />
|
|
</service>
|
|
</services>
|
|
<bindings>
|
|
<webHttpBinding>
|
|
<!--crossDomainScriptAccessEnabled make the WCF 4 service support the JSONP-->
|
|
<binding name="HttpJsonpBinding" crossDomainScriptAccessEnabled="true" maxReceivedMessageSize="2147483647" />
|
|
</webHttpBinding>
|
|
</bindings>
|
|
<behaviors>
|
|
<endpointBehaviors>
|
|
<behavior name="web">
|
|
<webHttp />
|
|
</behavior>
|
|
</endpointBehaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="ServiceBehaviour">
|
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
|
|
<serviceDebug includeExceptionDetailInFaults="false" />
|
|
</behavior>
|
|
<behavior name="">
|
|
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
|
|
<serviceDebug includeExceptionDetailInFaults="false" />
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
<protocolMapping>
|
|
<add binding="basicHttpsBinding" scheme="https" />
|
|
</protocolMapping>
|
|
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
|
|
</system.serviceModel>
|
|
<entityFramework>
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
<parameters>
|
|
<parameter value="v11.0" />
|
|
</parameters>
|
|
</defaultConnectionFactory>
|
|
<providers>
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
<provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
|
|
</providers>
|
|
</entityFramework>
|
|
<system.webServer>
|
|
<modules runAllManagedModulesForAllRequests="true" />
|
|
<!--
|
|
若要在调试过程中浏览 Web 应用程序根目录,请将下面的值设置为 True。
|
|
在部署之前将该值设置为 False 可避免泄露 Web 应用程序文件夹信息。
|
|
-->
|
|
<directoryBrowse enabled="true" />
|
|
<handlers>
|
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
|
<remove name="OPTIONSVerbHandler" />
|
|
<remove name="TRACEVerbHandler" />
|
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
|
</handlers>
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<add name="Access-Control-Allow-Origin" value="*" />
|
|
<add name="Access-Control-Max-Age" value="3600" />
|
|
<add name="Access-Control-Allow-Headers" value="Content-Type, Accept, MaxDataServiceVersion" />
|
|
<add name="Access-Control-Allow-Methods" value="PUT, POST, GET, DELETE, MERGE, OPTIONS" />
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
</system.webServer>
|
|
<system.diagnostics>
|
|
<sources>
|
|
<source name="System.ServiceModel" switchValue="Warning" propagateActivity="true">
|
|
<listeners>
|
|
<add name="xml" />
|
|
</listeners>
|
|
</source>
|
|
</sources>
|
|
<sharedListeners>
|
|
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="d:\temp\wcf.svclog" />
|
|
</sharedListeners>
|
|
</system.diagnostics>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-0.85.4.369" newVersion="0.85.4.369" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" />
|
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-6.9.9.0" newVersion="6.9.9.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>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<publisherPolicy apply="no" />
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
<system.data>
|
|
<DbProviderFactories>
|
|
<remove invariant="Oracle.ManagedDataAccess.Client" />
|
|
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
|
|
</DbProviderFactories>
|
|
</system.data>
|
|
</configuration> |