Skip to content

Commit d5a89d1

Browse files
committed
Add ResultCode
1 parent 5d7bb6f commit d5a89d1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ConvertEquations/ConvertEquations/Common.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,19 @@ class Common
1515
{
1616
//过滤HTML中img标签中的src
1717
public static string HTML_IMG = @"<img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>";
18+
}
1819

20+
/// <summary>
21+
/// 系统状态码
22+
/// </summary>
23+
sealed class ResultCode
24+
{
25+
public static string SUCCESS = "转换成功";
26+
public static string WORD_ERROR = "Word错误";
27+
public static string WORD_SAVE_ERROR = "Word存储错误";
28+
public static string EXCEL_ERROR = "Excel错误";
29+
public static string EXCEL_READ_ERROR = "Excel读取错误";
30+
public static string FILE_PATH_ERROR = "文件位置错误";
1931
}
2032

2133

0 commit comments

Comments
 (0)