Commit c6ba68d2 by wuyang.zou

fix new feature

1、向请求体中 额外添加  dllVersion + serverUrl key-value
2、优化代码结构目录 完善注释
3、Version: 2.21.1.12
parent 0ef9207e
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental> <LinkIncremental>true</LinkIncremental>
<IncludePath>E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\include;E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\include\curl-7.40.0\include\curl;$(IncludePath)</IncludePath> <IncludePath>$(SolutionDir)ZH_Client\include;$(SolutionDir)ZH_Client\include\curl-7.40.0\include\curl;$(IncludePath)</IncludePath>
<LibraryPath>E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\lib;E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client;$(LibraryPath)</LibraryPath> <LibraryPath>$(SolutionDir)ZH_Client\include\curl-7.40.0\lib;$(SolutionDir)ZH_Client\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental> <LinkIncremental>false</LinkIncremental>
<IncludePath>E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client;E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\include;E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\include\curl-7.40.0\include\curl;$(IncludePath)</IncludePath> <IncludePath>$(SolutionDir)ZH_Client\include;$(SolutionDir)ZH_Client\include\curl-7.40.0\include\curl;$(IncludePath)</IncludePath>
<LibraryPath>E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client;E:\zouwuyang\StarBucks\UPP-Client-Project\fmclient-CCO-1438\sbkclient\ZH_Client\lib;$(LibraryPath)</LibraryPath> <LibraryPath>$(SolutionDir)ZH_Client;$(SolutionDir)ZH_Client\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile> <ClCompile>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="main.cpp" /> <ClCompile Include="main.cpp" />
<ClCompile Include="sbk_client.cpp" /> <ClCompile Include="fmclient.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="dataprocess.h" /> <ClInclude Include="dataprocess.h" />
...@@ -108,4 +108,4 @@ ...@@ -108,4 +108,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>
\ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</Filter> </Filter>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="sbk_client.cpp"> <ClCompile Include="fmclient.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="main.cpp"> <ClCompile Include="main.cpp">
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
<Filter>Resource Files</Filter> <Filter>Resource Files</Filter>
</ResourceCompile> </ResourceCompile>
</ItemGroup> </ItemGroup>
</Project> </Project>
\ No newline at end of file
No preview for this file type
No preview for this file type
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
//EC-1446 //EC-1446
#define EC_DES3_KEY "DDDDEEEE45LPODDCXZZLKDDO" #define EC_DES3_KEY "DDDDEEEE45LPODDCXZZLKDDO"
#define DLL_VERSION "2.20.11.3" #define DLL_VERSION "2.21.1.12"
#define CRET_FILE_NAME "client.p12" #define CRET_FILE_NAME "client.p12"
#define JSON_KEY_ONLY "partnerOrderId" #define JSON_KEY_ONLY "partnerOrderId"
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#define DB_ORDER "order.db" #define DB_ORDER "order.db"
#define DB_TABLE_NAME "orderlist" #define DB_TABLE_NAME "orderlist"
#define MAX_ORDERID_LEN 200 #define MAX_ORDERID_LEN 200
#define POSTYPE "posType"
#define POS_TYPE_KEY "posType"
#define UPS_URL_KEY "serverUrl"
#define DLL_VER_KEY "dllVersion"
#endif #endif
\ No newline at end of file
//#define FM_TEST //#define FM_TEST
//#ifdef FM_TEST //#ifdef FM_TEST
//
//#include "fmtool.h" //#include "fmtool.h"
//
//#include <iostream> //#include <iostream>
//
//#include <rapidjson/document.h> //#include <rapidjson/document.h>
//#include <rapidjson/prettywriter.h> //#include <rapidjson/prettywriter.h>
//#include <rapidjson/filereadstream.h> //#include <rapidjson/filereadstream.h>
//#include <rapidjson/error/en.h> //#include <rapidjson/error/en.h>
//#include <rapidjson/filewritestream.h> //#include <rapidjson/filewritestream.h>
//#include <rapidjson/stringbuffer.h> //#include <rapidjson/stringbuffer.h>
//
//#include <gtest/gtest.h> //#include <gtest/gtest.h>
//using rapidjson::StringStream; //using rapidjson::StringStream;
//using rapidjson::Document; //using rapidjson::Document;
//using std::string; //using std::string;
//using std::endl; //using std::endl;
// //
//#include <gtest/gtest.h> //TEST(TestApp, TestComplementJson) {
//
//TEST(TestApp, TestComplementJson)
//{
// char in[] = "{\"ver\":1,\"message\":\"\",\"products\":[{\"pid\":4,\"name\":\"lcd\"},{\"name\":\"lcd\"},{\"pid\":4},{}]}"; // char in[] = "{\"ver\":1,\"message\":\"\",\"products\":[{\"pid\":4,\"name\":\"lcd\"},{\"name\":\"lcd\"},{\"pid\":4},{}]}";
//
//
// char out[MAX_BUF_LEN] = { 0 }; // char out[MAX_BUF_LEN] = { 0 };
//
// try
// {
// int i = Tool::ComplementJson(in, out, 0);
// LOG() << out << "\r\n" << i ;
// }
// catch (...)
// {
// std::cout << "asdasdasdasdasdas" << std::endl;
// }
//
//
// //Document outdata;
// //outdata.Parse(out);
// //if(outdata.HasParseError())
// //{
// // LOG()<< "outdata error";
// //}
// //Value value;
// //if (outdata.HasMember("reqtype"))
// //{
// // value = outdata["reqtype"];
// // EXPECT_EQ(value.GetInt(), 0);
// //}
//
//} //}
// //
//int main(int argc, char *argv[]) //int main(int argc, char *argv[]) {
//{
// ::testing::InitGoogleTest(&argc, argv); // ::testing::InitGoogleTest(&argc, argv);
// //teststring(); // teststring();
// RUN_ALL_TESTS(); // RUN_ALL_TESTS();
// //testAll(); // testAll();
// system("pause"); // system("pause");
// return 1; // return 1;
//} //}
//
//#endif //#endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment