Commit effba746 authored by liudong1993's avatar liudong1993

word处理服务

parent 03f45ae9
......@@ -16,23 +16,13 @@ namespace Mall.Education
{
static void Main(string[] args)
{
//ServiceBase[] ServicesToRun;
//ServicesToRun = new ServiceBase[]
//{
// new RebornTimerServer(),
//};
//ServiceBase.Run(ServicesToRun);
Console.WriteLine("进来了");
//string FilePath = "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Education/wkxq.docx";
//string[] patharr = FilePath.Split('/');
//string kjkj = "";
//for (var i = 3; i < patharr.Length - 1; i++)
//{
// kjkj += patharr[i] + "/";
//}
//Console.WriteLine("2:" + kjkj);
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new RebornTimerServer(),
};
ServiceBase.Run(ServicesToRun);
//Console.WriteLine("进来了");
......@@ -62,7 +52,11 @@ namespace Mall.Education
//ImageConvertData(new GoodsModel() { CourseId = 1, GoodsId = 1, FilePath = "" });
Console.ReadKey();
//AliOSSUploadObject m = new AliOSSUploadObject(1);
//m.TransferUploadFile("C:/Users/Administrator/Desktop/testImage/PdfImage/MA10048W_zh_001.jpg", "Goods/MA10048W_zh_001.jpg");
//Console.WriteLine("end");
//Console.ReadKey();
}
/// <summary>
......
......@@ -25,6 +25,10 @@ namespace Mall.Education
/// <param name="args"></param>
protected override void OnStart(string[] args)
{
//清理临时文件
new TimingFileClear();
//消息队列处理word转图片
RabbitConfig rabbit = new RabbitConfig()
{
HostName = "47.96.25.130",
......
......@@ -4,30 +4,18 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<appSettings>
<add key="VoiceIndexPath" value="SearchIndex\\Voice" />
<!--更新汇率时间间隔以及获取第三方汇率https://www.cngold.org/fx/huansuan.html金投网-->
<add key="WithIntervalInMinutes" value="30" />
<add key="Number" value="1" />
<add key="Referer" value="https://www.cngold.org/fx/huansuan.html" />
<add key="RequestURL" value="https://api.jijinhao.com/plus/convert.htm" />
<!--获取中国银行实时汇率-->
<add key="ChinaBankReferer" value="http://srh.bankofchina.com/search/whpj/search_cn.jsp" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<add key="IsNorServer" value="2" />
<add key="TX_COS_REGION" value="ap-chengdu" />
<add key="TX_COS_SECRETID" value="AKIDDPnbIzi8C1eqEOPP8dw6MNAg9H9ldDKd" />
<add key="TX_COS_SECRETKEY" value="PdcLtOjslUzNFYdU4OSI1fKtdHpFT2Ob" />
<add key="TX_COS_BUCKET" value="viitto-1301420277" />
<add key="Ali_OSS_REGION" value="oss-cn-chengdu.aliyuncs.com" />
<add key="Ali_OSS_SECRETID" value="LTAIwE7l9dImZSa3" />
<add key="Ali_OSS_SECRETKEY" value="j47Ajn0d0WzUCIX8Biyj3P2r8QDltI" />
<add key="Ali_OSS_BUCKET" value="vt-im-bucket" />
</appSettings>
<connectionStrings>
<add name="DefaultConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_user;CharSet=utf8;Convert Zero Datetime=true;" />
<!--allow zero datetime=true;Convert Zero Datetime=true;-->
<add name="DMCConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_dmc;CharSet=utf8;Convert Zero Datetime=true;" />
<!--日志数据库-->
<add name="LogConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_log;CharSet=utf8;Convert Zero Datetime=true;" />
<!--销售数据库-->
<add name="SellConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_sell;CharSet=utf8;Convert Zero Datetime=true;" />
<!--财务数据库-->
<add name="FinanceConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_finance;CharSet=utf8;Convert Zero Datetime=true;" />
<!--国内票务-->
<add name="DomesticConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_domestic_ticket;CharSet=utf8;Convert Zero Datetime=true;" />
<!--统计数据库-->
<add name="DataStatisticsConnection" providerName="MySql.Data.MySqlClient" connectionString="server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;port=3306;user id=reborn;password=Reborn@2018;database=uat_reborn_datastatistics;CharSet=utf8; Convert Zero Datetime=true;" />
<add name="DefaultConnection" providerName="MySql.Data.MySqlClient" connectionString="server=192.168.1.214;user id=reborn;password=Reborn@2018;database=test_reborn_mall_3;CharSet=utf8; Convert Zero Datetime=true;"/>
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
......
namespace REBORN.QuartClient
namespace Mall.EducationClient
{
partial class ClientServerControl
{
......@@ -87,7 +87,7 @@
this.MinimizeBox = false;
this.Name = "ClientServerControl";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Reborn定时器服务控制台";
this.Text = "Education图片转换服务控制台";
this.Load += new System.EventHandler(this.SocketServerControl_Load);
this.ResumeLayout(false);
......
......@@ -11,7 +11,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace REBORN.QuartClient
namespace Mall.EducationClient
{
public partial class ClientServerControl : Form
{
......@@ -19,7 +19,7 @@ namespace REBORN.QuartClient
{
InitializeComponent();
}
private static string serviceFilePath = $"{Application.StartupPath}\\REBORN.QUART.exe";
private static string serviceFilePath = $"{Application.StartupPath}\\Mall.Education.exe";
private static string serviceName = "RebornTimerServer";
......
......@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B665F9E2-C1D6-418C-9A1A-D777E3157799}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>REBORN.QuartClient</RootNamespace>
<AssemblyName>REBORN.QuartClient</AssemblyName>
<RootNamespace>Mall.EducationClient</RootNamespace>
<AssemblyName>Mall.EducationClient</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
......@@ -112,12 +112,6 @@
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.Education\Mall.Education.csproj">
<Project>{ce026caa-b6e6-47f5-9998-181a07679da0}</Project>
<Name>REBORN.QUART</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
......@@ -130,5 +124,11 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.Education\Mall.Education.csproj">
<Project>{ce026caa-b6e6-47f5-9998-181a07679da0}</Project>
<Name>Mall.Education</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace REBORN.QuartClient
namespace Mall.EducationClient
{
static class Program
{
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace REBORN.QuartClient.Properties {
namespace Mall.EducationClient.Properties {
using System;
......@@ -19,7 +19,7 @@ namespace REBORN.QuartClient.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
......@@ -39,7 +39,7 @@ namespace REBORN.QuartClient.Properties {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("REBORN.QuartClient.Properties.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Mall.EducationClient.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
......@@ -47,7 +47,7 @@ namespace REBORN.QuartClient.Properties {
}
/// <summary>
/// 使用此强类型资源类,为所有资源查找
/// 重写当前线程的 CurrentUICulture 属性
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace REBORN.QuartClient.Properties {
namespace Mall.EducationClient.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.6.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment