返回release和dev分支bid值

This commit is contained in:
2026-05-22 20:27:28 +08:00
parent c4d2431cb0
commit 171fa4448d

View File

@@ -34,6 +34,18 @@ BOOL TryGetBidFromBranch(const CString& strBranch, UINT& nBid)
return TRUE; return TRUE;
} }
if (strBranch.CompareNoCase(_T("release")) == 0 )
{
nBid = 1;
return TRUE;
}
if (strBranch.CompareNoCase(_T("dev")) == 0)
{
nBid = 2;
return TRUE;
}
int nDotPos = strBranch.ReverseFind(_T('.')); int nDotPos = strBranch.ReverseFind(_T('.'));
if (nDotPos <= 0 || nDotPos >= strBranch.GetLength() - 1) if (nDotPos <= 0 || nDotPos >= strBranch.GetLength() - 1)
{ {