v5.1 代码策略

This commit is contained in:
2026-11-24 21:51:58 +08:00
parent a98b5bc8c2
commit 8d8eec8e95
22 changed files with 2810 additions and 535 deletions
+5 -1
View File
@@ -28,8 +28,12 @@ void __fastcall TPolicySaveForm::FormCreate(TObject *Sender)
//---------------------------------------------------------------------------
void __fastcall TPolicySaveForm::OnOkClick(TObject *Sender)
{
if(m_leName->Text.Trim().IsEmpty()){ //名称不能为空
MessageBox(Handle, L"名称不能为空", L"保存", MB_ICONERROR | MB_OK);
return;
}
vector<TBasePolicy*>& aPolicies = m_iType==TYPE_P_BET ? g_aBetPolicies : g_aChipPolicies;
// bool bRepeat = false;
int type = -1;
m_iPolicy = -1;
for(int i=0; i<aPolicies.size(); i++){