更新配置常量与调试代码调整
1. 在 `Config.cs` 中新增多个环境常量字符串: - 新增 `ALL_IN_ONE`、`PRE` 和新的 `PROD` 常量。 - 删除旧的 `PROD` 常量,原值为 `"http://aijdw1.goldmye.com/"`。 2. 调整 `WEB_PATH` 的值: - `#if DEBUG` 下改为 `AppServer.PRE`。 - 非 `DEBUG` 下保持为 `AppServer.PROD`。 3. 在 `Tools.cs` 中注释掉两行 `Debug.WriteLine` 调试代码,减少不必要的调试输出。
This commit is contained in:
parent
ff9a25d437
commit
fc3773b65d
Binary file not shown.
@ -17,9 +17,20 @@ namespace AIProofread
|
||||
/// </summary>
|
||||
public const string DEV = "http://localhost:5173/";
|
||||
/// <summary>
|
||||
/// 一体机
|
||||
/// </summary>
|
||||
public const string ALL_IN_ONE = "http://112.48.25.226:89/";
|
||||
/// <summary>
|
||||
/// 果麦预发布环境
|
||||
/// </summary>
|
||||
public const string PRE = "https://pre-gm-plugin.gachafun.com/";
|
||||
/// <summary>
|
||||
/// 果麦生产环境
|
||||
/// </summary>
|
||||
public const string PROD = "https://gm-plugin.gachafun.com/";
|
||||
/// <summary>
|
||||
/// 测试环境
|
||||
/// </summary>
|
||||
public const string PROD = "http://aijdw1.goldmye.com/";
|
||||
public const string TEST = "http://tt-plugin.zverse.group/";
|
||||
}
|
||||
public class Config
|
||||
@ -43,7 +54,7 @@ namespace AIProofread
|
||||
/// <summary>
|
||||
/// 网页访问地址
|
||||
/// </summary>
|
||||
public static string WEB_PATH = AppServer.DEV; //pre-gm-plugin.gachafun.com localhost:5173 gm2-plugin.zverse.group
|
||||
public static string WEB_PATH = AppServer.PRE; //pre-gm-plugin.gachafun.com localhost:5173 gm2-plugin.zverse.group
|
||||
public static bool RUN_IN_DEBUG = true;
|
||||
public static AppEnvironment APP_ENV = AppEnvironment.Prod;
|
||||
#else
|
||||
|
@ -161,8 +161,8 @@ namespace AIProofread
|
||||
string ext = Path.GetExtension(docPath);
|
||||
string tmpFile = Path.GetTempFileName();
|
||||
|
||||
Debug.WriteLine("GetReadDocumentFilePath Start ==>", DateTime.Now.ToLongTimeString());
|
||||
Debug.WriteLine("GetReadDocumentFilePath =>{0}", docPath);
|
||||
//Debug.WriteLine("GetReadDocumentFilePath Start ==>", DateTime.Now.ToLongTimeString());
|
||||
//Debug.WriteLine("GetReadDocumentFilePath =>{0}", docPath);
|
||||
|
||||
// 先转成临时文件
|
||||
FileStream fs = new FileStream(docPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
|
Loading…
x
Reference in New Issue
Block a user