Commit d4ce78b1f685e788bbfd997d92db3d9ab95cc6bc
1 parent
93bbdaab
ifeat<card_client>:修复扣点收费Bug #15019和华视身份证读卡器问题
Bug #15019:在不加密的情况下,开卡时写卡步骤读取一次卡片以判断读卡器上有无卡片。 华视读卡器在读取身份证照片时,路径配置错误,现已修改。
Showing
5 changed files
with
16 additions
and
16 deletions
etrade_card_client/Config/application_config.json
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | "client_cert_subject": "*.diligrp.com", | 9 | "client_cert_subject": "*.diligrp.com", |
10 | "client_cert_filename": "", | 10 | "client_cert_filename": "", |
11 | "client_cert_password": "", | 11 | "client_cert_password": "", |
12 | - "security_level": 1, | 12 | + "security_level": 0, |
13 | "encrypt_type": 0, | 13 | "encrypt_type": 0, |
14 | "id_reader": 1 | 14 | "id_reader": 1 |
15 | } | 15 | } |
16 | \ No newline at end of file | 16 | \ No newline at end of file |
etrade_card_client/ETradeClient.rc
@@ -245,8 +245,8 @@ END | @@ -245,8 +245,8 @@ END | ||
245 | // | 245 | // |
246 | 246 | ||
247 | VS_VERSION_INFO VERSIONINFO | 247 | VS_VERSION_INFO VERSIONINFO |
248 | - FILEVERSION 1,0,0,3 | ||
249 | - PRODUCTVERSION 1,0,0,3 | 248 | + FILEVERSION 1,0,0,4 |
249 | + PRODUCTVERSION 1,0,0,4 | ||
250 | FILEFLAGSMASK 0x3fL | 250 | FILEFLAGSMASK 0x3fL |
251 | #ifdef _DEBUG | 251 | #ifdef _DEBUG |
252 | FILEFLAGS 0x1L | 252 | FILEFLAGS 0x1L |
@@ -263,12 +263,12 @@ BEGIN | @@ -263,12 +263,12 @@ BEGIN | ||
263 | BEGIN | 263 | BEGIN |
264 | VALUE "CompanyName", "地利集团【DILI GROUP】" | 264 | VALUE "CompanyName", "地利集团【DILI GROUP】" |
265 | VALUE "FileDescription", "电子交易结算柜员系统【ETradeClient】" | 265 | VALUE "FileDescription", "电子交易结算柜员系统【ETradeClient】" |
266 | - VALUE "FileVersion", "1.0.0.3" | 266 | + VALUE "FileVersion", "1.0.0.4" |
267 | VALUE "InternalName", "ETradeClient.exe" | 267 | VALUE "InternalName", "ETradeClient.exe" |
268 | VALUE "LegalCopyright", "(C) 地利集团。 保留所有权利。" | 268 | VALUE "LegalCopyright", "(C) 地利集团。 保留所有权利。" |
269 | VALUE "OriginalFilename", "ETradeClient.exe" | 269 | VALUE "OriginalFilename", "ETradeClient.exe" |
270 | VALUE "ProductName", "电子交易结算柜员系统" | 270 | VALUE "ProductName", "电子交易结算柜员系统" |
271 | - VALUE "ProductVersion", "1.0.1.181015_Release" | 271 | + VALUE "ProductVersion", "1.0.4.181025_Beta" |
272 | END | 272 | END |
273 | END | 273 | END |
274 | BLOCK "VarFileInfo" | 274 | BLOCK "VarFileInfo" |
etrade_card_client/ETradeClient/hardware/hardware_cmd.cpp
@@ -1025,14 +1025,6 @@ ReadPINPadCmd::Reply WriteDILICardServiceInfoCmd::Execute(const std::string& inp | @@ -1025,14 +1025,6 @@ ReadPINPadCmd::Reply WriteDILICardServiceInfoCmd::Execute(const std::string& inp | ||
1025 | break; | 1025 | break; |
1026 | } | 1026 | } |
1027 | 1027 | ||
1028 | - //安全等级都为0了,还写个毛的业务信息,直接返回! | ||
1029 | - if (slLevel == HardwareCmd::SL_0) | ||
1030 | - { | ||
1031 | - reply.error_code == StatusCode::OK; | ||
1032 | - LOG_TRACE(L"读取卡片业务信息成功。"); | ||
1033 | - return reply; | ||
1034 | - } | ||
1035 | - | ||
1036 | try | 1028 | try |
1037 | { | 1029 | { |
1038 | dili_card_device.FindCard(); | 1030 | dili_card_device.FindCard(); |
@@ -1052,7 +1044,15 @@ ReadPINPadCmd::Reply WriteDILICardServiceInfoCmd::Execute(const std::string& inp | @@ -1052,7 +1044,15 @@ ReadPINPadCmd::Reply WriteDILICardServiceInfoCmd::Execute(const std::string& inp | ||
1052 | reply.error_code = StatusCode::DILI_CARD_DEVICE_READ_BASIC_INFO_FAILED; | 1044 | reply.error_code = StatusCode::DILI_CARD_DEVICE_READ_BASIC_INFO_FAILED; |
1053 | break; | 1045 | break; |
1054 | } | 1046 | } |
1055 | - //card_sn = stuCardBasicInfo.device_id; | 1047 | + |
1048 | + //安全等级都为0了,还写个毛的业务信息,直接返回! | ||
1049 | + if (slLevel == HardwareCmd::SL_0) | ||
1050 | + { | ||
1051 | + reply.error_code == StatusCode::OK; | ||
1052 | + reply.data.put("", ""); | ||
1053 | + LOG_TRACE(L"读取卡片业务信息成功。"); | ||
1054 | + break; | ||
1055 | + } | ||
1056 | 1056 | ||
1057 | LOG_TRACE(L"计算SN。"); | 1057 | LOG_TRACE(L"计算SN。"); |
1058 | std::string sSN; | 1058 | std::string sSN; |
etrade_card_client/ETradeClient/hardware/id_card_reader.cpp
@@ -137,12 +137,12 @@ void IDCardReader::GetPortraitPath(std::wstring& portrait_path) const | @@ -137,12 +137,12 @@ void IDCardReader::GetPortraitPath(std::wstring& portrait_path) const | ||
137 | wchar_t exe_path[MAX_PATH]; | 137 | wchar_t exe_path[MAX_PATH]; |
138 | HMODULE h_module = GetModuleHandle(NULL); | 138 | HMODULE h_module = GetModuleHandle(NULL); |
139 | if (NULL != h_module) | 139 | if (NULL != h_module) |
140 | - GetModuleFileName(h_module, exe_path, sizeof(exe_path)); | 140 | + GetCurrentDirectory(MAX_PATH, exe_path); |
141 | else | 141 | else |
142 | throw std::exception("Calling windows API to get exe path failed."); | 142 | throw std::exception("Calling windows API to get exe path failed."); |
143 | 143 | ||
144 | // @TODO modify the path? | 144 | // @TODO modify the path? |
145 | - std::wstring portrait_path_ = fs::wpath(exe_path).parent_path().wstring() + str_2_wstr("\\" + kPortraitName); | 145 | + std::wstring portrait_path_ = fs::wpath(exe_path).wstring() + str_2_wstr("\\" + kPortraitName); |
146 | if (!fs::exists(portrait_path_)) | 146 | if (!fs::exists(portrait_path_)) |
147 | throw std::exception("ID card portrait image does not exist."); | 147 | throw std::exception("ID card portrait image does not exist."); |
148 | 148 |
etrade_card_client/out/Win32/卡务客户端.zip deleted
100644 → 0
No preview for this file type