Skip to content

Commit

Permalink
Fix for release
Browse files Browse the repository at this point in the history
  • Loading branch information
SuJiKiNen committed Feb 26, 2021
1 parent b144981 commit e123cc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DecardService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int main()
finish = clock();

int code = 200;
if (rfid_card_no < 0 && insur_card_no.length() == 3) {
if (rfid_card_no < 0 && insur_card_no.length() == 4) {
code = 503;
}
char data[1024];
Expand All @@ -227,6 +227,7 @@ int main()
insur_card_no.c_str(),
float(finish) - float(start)
);
res.set_header("Access-Control-Allow-Origin", "*");
res.set_content(data, "application/json");
reader.close_device();
});
Expand Down
2 changes: 2 additions & 0 deletions DecardService.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<LibraryPath>$(ProjectDir)DecardSDK;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
Expand Down Expand Up @@ -115,6 +116,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>dcic32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down
2 changes: 1 addition & 1 deletion decard_service.vbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "cmd /c DecardService.exe > decard_service.log"
strArgs = "cmd /c DecardService.exe >> decard_service.log"
oShell.Run strArgs, 0, false

0 comments on commit e123cc3

Please sign in to comment.