283 lines
15 KiB
XML
283 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
For more information on how to configure your ASP.NET application, please visit
|
|
https://go.microsoft.com/fwlink/?LinkId=301879
|
|
-->
|
|
<configuration>
|
|
<configSections>
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
|
</configSections>
|
|
<system.webServer>
|
|
<modules>
|
|
<add name="WebApiModule" type="MyCode.Project.WebApi.App_Modules.WebApiModule" />
|
|
</modules>
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<add name="Access-Control-Allow-Origin" value="*" />
|
|
<add name="Access-Control-Allow-Methods" value="*" />
|
|
<add name="Access-Control-Allow-Headers" value="Content-type,Authorization,*" />
|
|
<add name="Access-Control-Request-Headers" value="*" />
|
|
<add name="Access-Control-Request-Method" value="*" />
|
|
<add name="Access-Control-Allow-Credentials" value="*" />
|
|
<add name="Access-Control-Max-Age" value="1728000" />
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
</system.webServer>
|
|
<connectionStrings>
|
|
<add name="MasterConn" connectionString="Data Source=rm-wz96d80c0x5vq4493.sqlserver.rds.aliyuncs.com,3433; Initial Catalog=erpcloudbusiness_lxm; User ID=lxmdba;Password=qazplm098!@#; Connect Timeout=120; MultipleActiveResultSets=True;App=bfy" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
<appSettings>
|
|
<add key="OldFuiouPayUrl" value="https://spay-mc.fuioupay.com/" />
|
|
<add key="FuiouPayUrl" value="https://spay-cloud.fuioupay.com/" />
|
|
<!--mysql数据库的API正式环境接口地址-->
|
|
<add key="LxmReportApiUrl" value="http://127.0.0.1:9382" />
|
|
|
|
<add key="RedisAddress" value="r-wz9dc93da65daca4.redis.rds.aliyuncs.com:6379,password=Loonxi1LXM" />
|
|
<!--微信API接口地址-->
|
|
<add key="WeixinApiUrl" value="https://bfy-api.wxbinf.com" />
|
|
<!--当前域名-->
|
|
<add key="Domain" value="https://bfyh5.wxbinf.com" />
|
|
<!--测试环境缓存前缀--><!--
|
|
<add key="CachePrefix" value="bfy:dev:" />-->
|
|
<!--正式环境缓存前缀-->
|
|
<add key="CachePrefix" value="lxm:prod:" />
|
|
|
|
<!--小程序门店端的测试AppId-->
|
|
<!--<add key="AppId" value="wxc3e0260e38c44182" />-->
|
|
<!--小程序门店的正式AppId-->
|
|
<add key="AppId" value="wx1627229a29db68b3"/>
|
|
<!--小程序门店端的测试AppSecret-->
|
|
<!--<add key="AppSecret" value="ea0a817c5dd781f0549ddfd39b1fc60e" />-->
|
|
<!--小程序门店端的正式AppId-->
|
|
<add key="AppSecret" value="84a957472318765b00092c06eabf3ed9" />
|
|
|
|
<!--会员端小程序的测试AppId-->
|
|
<!--<add key="MemberAppId" value="wx54a66a304f37bc29" />-->
|
|
<!--会员端小程序的正式AppId-->
|
|
<add key="MemberAppId" value="wx28f095ca78e27699" />
|
|
<!--会员端小程序的测试AppSecret-->
|
|
<!--<add key="MemberAppSecret" value="6d3cd573aee48ba3de47ee402e9e4c3f" />-->
|
|
<!--会员端小程序的正式AppSecret-->
|
|
<add key="MemberAppSecret" value="b7fc7cc4e4cdcae60d9746002efce845" />
|
|
|
|
<!--测试环境公众号的APPID-->
|
|
<!--<add key="WeAppid" value="wx060dc7febcb04645"/>-->
|
|
<!--正式环境公众号的APPID-->
|
|
<add key="WeAppid" value="wx8f9d5963d23f43f6"/>
|
|
|
|
<!--小胖美妆的小程序-->
|
|
<add key="XiaoPangAppid" value="wx062bd9c8addea93b" />
|
|
<add key="XiaoPangAppsecret" value="176ef72d142b3dddf6d41bb2dc0243f5" />
|
|
|
|
<!--正式环境公众号的AppSecret-->
|
|
<add key="WeAppSecret" value="6e8f90951051db0803bfe7f24cb03c44" />
|
|
<!--测试环境公众号的AppSecret-->
|
|
<!--<add key="WeAppSecret" value="788c81bd1eecaaa681360a296413d45d" />-->
|
|
<add key="NCApiUrl" value="http://120.78.93.13:290" />
|
|
<add key="NCApiToken" value="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjYxNTcyMzE5MTU2LCJsb2dpbiI6eyJFbnZpcm9ubWVudCI6InByb2R1Y3Rpb24iLCJTeXN0ZW1Db2RlIjoxfX0.v9yyLUC4MNwjsHpQAajU0dH3d_5GswiieDqoGvQaRVA" />
|
|
|
|
<!--正式环境公众号消息的API地址-->
|
|
<add key="PublicApiUrl" value="http://127.0.0.1:919" />
|
|
<!--版本号-->
|
|
<add key="ApiVersion" value="" />
|
|
|
|
|
|
<!--99女神卡卡套ID-->
|
|
<add key="NymphCardId" value="7FACAB5B-E985-0321-88ED-39F08D5815E6" />
|
|
<!--小程序码存放地址-->
|
|
<add key="FilesPatch" value="D:\LXM\智慧门店Api\Api\App_File\" />
|
|
<!--分裂式门票活动-->
|
|
<add key="Activity0" value="SmartStore/分裂式门票.png" />
|
|
<add key="Activity4" value="SmartStore/分裂式门票.png" />
|
|
<add key="Activity5" value="SmartStore/分裂式门票.png" />
|
|
<!--99女神卡活动-->
|
|
<add key="Activity2" value="SmartStore/99女神卡海报.png" />
|
|
<!--jwtkey-->
|
|
<add key="JwtKey" value="4ea0180d8f8c1ce11343e9104c682bc4" />
|
|
<!--是否输出Sql命令0:不输出 1:输出-->
|
|
<add key="OutputSql" value="0" />
|
|
<!--取消owin启动-->
|
|
<add key="owin:AutomaticAppStartup" value="false" />
|
|
<!--钉钉通知机器人-->
|
|
<add key="DingDingApiUrl" value="https://oapi.dingtalk.com/robot/send?access_token=6b520d99d7b7c5ed3988cb2310176b4fc12641ca2139efd3d88a47f6ee04972f" />
|
|
<add key="H5payurl" value="http://h5binfpay.wxbinf.com/pay?orderid=" />
|
|
<add key="notify_url" value="https://jk.wxbinf.com/api/Pay/FuiouCallBack" />
|
|
<add key="RegisteredUrl" value="http://bfyh5.wxbinf.com/Member?shopId=" />
|
|
<add key="DingDingTxt" value="websocket智慧门店正式环境: " />
|
|
<!--微信服务器配置中的token-->
|
|
<add key="WeToken" value="smartstore" />
|
|
<!--主键生成的最后一个数字-->
|
|
<add key="IdLastNum" value="1" />
|
|
<add key="MerchantId" value="00000000-0000-0000-0000-000000000000" />
|
|
<add key="SysConfig" value="{"MerchantId": "00000000-0000-0000-0000-000000000009","Issuer": "lxzyl","Secret": "4ea0180d8f8c1ce11343e9104c682bc4","SendVerifyCode":"http://120.78.93.13:30000/InterfaceAPI/sendVerifyCode", "SendSms": "http://120.78.93.13:30000/InterfaceAPI/sendSmsMessage", "ApiTokenUrl": "https://jk.wxbinf.com/oauth2/token",
|
|
"IsDev": true, "QiNiuCloudApiUrl": "http://oss-api.loonxierp.com", "CmpPayCallbackDomain": "http://bfy-api.wxbinf.com:8095"}" />
|
|
<add key="WechatConfig" value="{"ApiAuthDomain": "https://bfy-api.wxbinf.com","Scope": "snsapi_base","WechatPublic": "流行美","appHtml": "http://dx.wxbinf.com"} " />
|
|
<add key="SmsTemplateConfig" value="{"ConsumptionSuccess":"亲爱的#Member#会员,您本次消费共#Amount#元,获得#Integral#积分;请关注【#WechatPublic#】公众号查看详情。", "ServiceFinish":"亲爱的顾客,您在本店享受了【#ServiceString#】服务,剩余服务【#RemainingService#】,详情请打开小程序查看; #AppHtml# ",
|
|
"RechangeSuccess": "亲爱的会员,您已成功充值#RechargeAmount#元;储值余额#Balance#元;请关注【#WechatPublic#】公众号,登录后查看储值明细。", "PreOrderSuccess": "亲爱的会员,您在#Month#月#Day#日#Shop#的服务项目已经预约成功,关注【#WechatPublic#】公众号,查看预约详情。"
|
|
}" />
|
|
|
|
<!-- 七牛参数配置begin -->
|
|
<add key="QiniuAccessKey" value="n5hhPJsHhGUhXP_HKe6FayyuUnqegM-Z-93aLOF9" />
|
|
<add key="QiniuSecretKey" value="c2TvYY8SbXLWf6yZwS_SXXoXXqPzCjeoibQOMMK5" />
|
|
<add key="QiniuBucket" value="binf" />
|
|
<add key="QiniuDomainName" value="https://wuxingcdn.guoko.com/" />
|
|
|
|
<!-- 抖音接口配置___测试 -->
|
|
<add key="DouYinApiUrl" value="http://172.18.7.165:6095/" />
|
|
<!--正式环境后台系统的API地址-->
|
|
<add key="LxmAdminApiUrl" value="http://127.0.0.1:8099" />
|
|
</appSettings>
|
|
<!--
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
|
|
|
可在 <httpRuntime> 标记上设置以下特性。
|
|
<system.Web>
|
|
<httpRuntime targetFramework="4.5" />
|
|
</system.Web>
|
|
-->
|
|
<system.web>
|
|
<authentication mode="None" />
|
|
<compilation debug="true" targetFramework="4.6.1" />
|
|
<httpRuntime targetFramework="4.6.1" />
|
|
<customErrors mode="Off" />
|
|
</system.web>
|
|
<log4net>
|
|
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
|
|
<!--日志路径-->
|
|
<param name="File" value="App_Log\" />
|
|
<!--是否是向文件中追加日志-->
|
|
<param name="AppendToFile" value="true" />
|
|
<!--log保留天数-->
|
|
<param name="MaxSizeRollBackups" value="30" />
|
|
<!--日志文件名是否是固定不变的-->
|
|
<param name="StaticLogFileName" value="false" />
|
|
<!--日志文件名格式为:2008-08-31.log-->
|
|
<param name="DatePattern" value="yyyy-MM-dd".log"" />
|
|
<!--日志根据日期滚动-->
|
|
<param name="RollingStyle" value="Date" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n %logger" />
|
|
</layout>
|
|
</appender>
|
|
|
|
<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
|
|
<bufferSize value="1" />
|
|
<connectionType value="MySql.Data.MySqlClient.MySqlConnection, MySql.Data" />
|
|
<connectionString value="server=inside-mall.rwlb.rds.aliyuncs.com;port=3306; database=report_db_prod; user id=report;password=Lxm@1234" />
|
|
<commandText value="INSERT INTO api_log (level,message,api_type,create_time) VALUES (?log_level,?message,4, ?log_date)" />
|
|
|
|
<parameter>
|
|
<parameterName value="?log_date" />
|
|
<dbType value="DateTime" />
|
|
<layout type="log4net.Layout.RawTimeStampLayout" />
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<parameterName value="?log_level" />
|
|
<dbType value="String" />
|
|
<size value="50" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<conversionPattern value="%level" />
|
|
</layout>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<parameterName value="?message" />
|
|
<dbType value="String" />
|
|
<size value="4000" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<conversionPattern value="%message" />
|
|
</layout>
|
|
</parameter>
|
|
<filter type="log4net.Filter.LevelMatchFilter">
|
|
<levelToMatch value="DEBUG" />
|
|
</filter>
|
|
<filter type="log4net.Filter.DenyAllFilter" />
|
|
</appender>
|
|
|
|
|
|
<logger name="MyCode.Project.Logger">
|
|
<level value="ERROR" />
|
|
<level value="INFO" />
|
|
<appender-ref ref="RollingLogFileAppender" />
|
|
|
|
</logger>
|
|
<root>
|
|
<!--(高) OFF > FATAL > ERROR > WARN > INFO > DEBUG > ALL (低)-->
|
|
<level value="ALL" />
|
|
<appender-ref ref="RollingLogFileAppender" />
|
|
<appender-ref ref="AdoNetAppender" />
|
|
</root>
|
|
</log4net>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.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>
|
|
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
|
</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="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
<system.codedom>
|
|
<compilers>
|
|
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
|
|
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
|
</compilers>
|
|
</system.codedom>
|
|
</configuration> |