Commit 0bed901e LN

1

1 个父辈 48e51a7a
......@@ -13,7 +13,7 @@ namespace OnlineStore.ACSingleStore
{
public partial class FrmBase : Form
{
internal static string GetVersion()
internal static string GetVersion(bool isShow = false)
{
string str = "";
string version = "";
......@@ -38,7 +38,10 @@ namespace OnlineStore.ACSingleStore
str = version;
LogUtil.error("解析版本号【" + str + "】出错:" + ex.ToString());
}
LogUtil.info("版本号[" + version + "][" + str + "][" + GetCodeNum() + "]");
if (isShow)
{
LogUtil.info("版本号[" + version + "][" + str + "][" + GetCodeNum() + "]");
}
return str;
}
internal static string GetCodeNum(string codeName = "RC1258-ACSingleStore")
......
......@@ -138,7 +138,7 @@ namespace OnlineStore.ACSingleStore
private void FrmTest_Load(object sender, EventArgs e)
{
string version = GetVersion();
string version = GetVersion(true );
LogUtil.logBox = this.richTextBox1;
initValue();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!