zhangyang 6 лет назад
Родитель
Сommit
8bf4b4dcdb

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/db/pos.db


+ 272 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/log/pos.log

@@ -9663,3 +9663,275 @@
 2019-08-17 11:41:46[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
 2019-08-17 11:41:46[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
 2019-08-17 11:41:46[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 11:58:46[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:46[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:46[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 11:58:46[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:46[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 11:58:46[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:46[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 11:58:46[INFO] - postString:nonce=123456&timestamp=1566014326&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 11:58:46[INFO] - sign:7F1470CD4CE790D8F5D394EFA6873A4E [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 11:58:46[INFO] - postString:nonce=123456&sign=7F1470CD4CE790D8F5D394EFA6873A4E&timestamp=1566014326&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 11:58:47[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"ets8dgap0ru52mikt5f4hnu9q4","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 11:58:47[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"ets8dgap0ru52mikt5f4hnu9q4","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 11:58:47[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 11:58:47[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:47[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 11:58:47[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 11:58:47[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 12:02:14[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:14[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:14[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 12:02:14[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:14[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 12:02:14[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:14[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 12:02:14[INFO] - postString:nonce=123456&timestamp=1566014534&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 12:02:14[INFO] - sign:8BBD1809604CE20B80A27F1155EBDE90 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 12:02:14[INFO] - postString:nonce=123456&sign=8BBD1809604CE20B80A27F1155EBDE90&timestamp=1566014534&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 12:02:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"lu8opi4epv542uimnqefpd3rt7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 12:02:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"lu8opi4epv542uimnqefpd3rt7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 12:02:15[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 12:02:15[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:15[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 12:02:15[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:02:15[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 12:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:52[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 12:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:52[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 12:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:52[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 12:13:52[INFO] - postString:nonce=123456&timestamp=1566015232&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 12:13:52[INFO] - sign:F318751BAD600C5141C90D3D4F9EBE73 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 12:13:52[INFO] - postString:nonce=123456&sign=F318751BAD600C5141C90D3D4F9EBE73&timestamp=1566015232&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 12:13:53[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"jdcnqt60roirkoftshdqm2nl76","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 12:13:53[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"jdcnqt60roirkoftshdqm2nl76","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 12:13:53[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 12:13:53[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:53[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 12:13:53[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 12:13:53[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:08:23[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:23[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:23[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:08:23[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:23[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:08:23[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:23[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:08:23[INFO] - postString:nonce=123456&timestamp=1566018503&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:08:23[INFO] - sign:D73E919BBA27CDC93DCC08132D2F7597 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:08:23[INFO] - postString:nonce=123456&sign=D73E919BBA27CDC93DCC08132D2F7597&timestamp=1566018503&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:08:24[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6io8qajgei3muhl63f28lc6v31","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:08:24[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6io8qajgei3muhl63f28lc6v31","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:08:24[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:08:24[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:24[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:08:24[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:08:24[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:13:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:51[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:13:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:51[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:13:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:51[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:13:51[INFO] - postString:nonce=123456&timestamp=1566018831&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:13:51[INFO] - sign:F488BB8D57D668B9477FD25171289837 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:13:51[INFO] - postString:nonce=123456&sign=F488BB8D57D668B9477FD25171289837&timestamp=1566018831&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:13:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"cemci7q08c4akmill2uofg8rt0","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:13:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"cemci7q08c4akmill2uofg8rt0","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:13:52[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:52[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:13:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:13:52[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:41:17[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:17[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:17[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:41:17[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:17[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:41:17[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:17[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:41:17[INFO] - postString:nonce=123456&timestamp=1566020477&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:41:17[INFO] - sign:2F3840496551CA61D72F341C43295B87 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:41:17[INFO] - postString:nonce=123456&sign=2F3840496551CA61D72F341C43295B87&timestamp=1566020477&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:41:18[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"l910r4b3deb25fgi723kc083g7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:41:18[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"l910r4b3deb25fgi723kc083g7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:41:18[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:41:18[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:18[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:41:18[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:41:18[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:42:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:51[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:42:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:51[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:42:51[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:51[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:42:51[INFO] - postString:nonce=123456&timestamp=1566020571&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:42:51[INFO] - sign:60D538B5B5BD620AC65FD29AF9F1AC61 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:42:51[INFO] - postString:nonce=123456&sign=60D538B5B5BD620AC65FD29AF9F1AC61&timestamp=1566020571&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:42:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"gvahqbmk2in3c4euunfu24k3o5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:42:52[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"gvahqbmk2in3c4euunfu24k3o5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:42:52[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:42:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:52[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:42:52[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:42:52[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:46:28[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:28[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:28[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:46:28[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:28[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:46:28[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:28[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:46:28[INFO] - postString:nonce=123456&timestamp=1566020788&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:46:28[INFO] - sign:FF199F2A0E88013B7C821924267DF37D [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:46:28[INFO] - postString:nonce=123456&sign=FF199F2A0E88013B7C821924267DF37D&timestamp=1566020788&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:46:29[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vfna388ord94qor8cvq2vl4il5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:46:29[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"vfna388ord94qor8cvq2vl4il5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:46:29[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:46:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:29[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:46:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:46:29[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:58:07[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:07[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:07[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:58:07[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:07[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 13:58:07[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:07[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 13:58:07[INFO] - postString:nonce=123456&timestamp=1566021487&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 13:58:07[INFO] - sign:770E2279E70A4D14266F6DA748CE7FE0 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 13:58:07[INFO] - postString:nonce=123456&sign=770E2279E70A4D14266F6DA748CE7FE0&timestamp=1566021487&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 13:58:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6l9rsptiduhiv5a6mb2pn7fi41","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 13:58:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"6l9rsptiduhiv5a6mb2pn7fi41","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 13:58:08[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 13:58:08[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:08[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 13:58:08[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 13:58:08[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:02:39[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:39[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:39[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:02:39[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:39[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:02:39[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:39[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:02:39[INFO] - postString:nonce=123456&timestamp=1566021759&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:02:39[INFO] - sign:74BCDCECED1ACFFEB3FA0CFEA32EEEC4 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:02:39[INFO] - postString:nonce=123456&sign=74BCDCECED1ACFFEB3FA0CFEA32EEEC4&timestamp=1566021759&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:02:40[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"en2ra55oncogt36hg6hj5krse5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:02:40[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"en2ra55oncogt36hg6hj5krse5","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:02:40[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:02:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:40[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:02:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:02:40[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:03:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:41[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:03:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:41[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:03:41[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:41[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:03:41[INFO] - postString:nonce=123456&timestamp=1566021821&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:03:41[INFO] - sign:4759AC2EE9A7CCB1091357390FE18B47 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:03:41[INFO] - postString:nonce=123456&sign=4759AC2EE9A7CCB1091357390FE18B47&timestamp=1566021821&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:03:42[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"au2safg6afjpj0aph3nr4cpf01","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:03:42[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"au2safg6afjpj0aph3nr4cpf01","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:03:42[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:03:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:42[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:03:42[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:03:42[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:04:10[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:10[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:10[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:04:10[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:10[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:04:10[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:10[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:04:10[INFO] - postString:nonce=123456&timestamp=1566021850&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:04:10[INFO] - sign:CEC3D85DB7CC4FC1026E6808ECA2CC9E [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:04:10[INFO] - postString:nonce=123456&sign=CEC3D85DB7CC4FC1026E6808ECA2CC9E&timestamp=1566021850&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:04:11[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"pfc0g7rh5lhn7lfmei8hufu0b4","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:04:11[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"pfc0g7rh5lhn7lfmei8hufu0b4","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:04:11[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:04:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:11[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:04:11[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:04:11[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:05:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:29[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:05:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:29[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:05:29[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:29[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:05:29[INFO] - postString:nonce=123456&timestamp=1566021929&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:05:29[INFO] - sign:FAC309C8CD9DF43D3D6ADFB1495AF1B5 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:05:29[INFO] - postString:nonce=123456&sign=FAC309C8CD9DF43D3D6ADFB1495AF1B5&timestamp=1566021929&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:05:30[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"abjetpabhb4leuddif807uum77","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:05:30[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"abjetpabhb4leuddif807uum77","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:05:30[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:05:30[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:30[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:05:30[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:05:30[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:12:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:54[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:12:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:54[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:12:54[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:54[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:12:54[INFO] - postString:nonce=123456&timestamp=1566022374&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:12:54[INFO] - sign:70F282734294B327A800C667C26AA3F3 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:12:54[INFO] - postString:nonce=123456&sign=70F282734294B327A800C667C26AA3F3&timestamp=1566022374&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:12:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qi52fj5bogmuohagreogvq66o1","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:12:55[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qi52fj5bogmuohagreogvq66o1","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:12:55[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:12:55[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:55[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:12:55[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:12:55[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:16:38[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:38[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:38[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:16:38[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:38[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:16:38[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:38[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:16:38[INFO] - postString:nonce=123456&timestamp=1566022598&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:16:38[INFO] - sign:36AEA96FA6417AF4707D2870C2BE794B [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:16:38[INFO] - postString:nonce=123456&sign=36AEA96FA6417AF4707D2870C2BE794B&timestamp=1566022598&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:16:40[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qkdoefcjrcu7i10suje2gu7tt7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:16:40[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"qkdoefcjrcu7i10suje2gu7tt7","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:16:40[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:16:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:40[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:16:40[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:16:40[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:24:20[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:20[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:20[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:24:20[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:20[INFO] - save params fail [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-17 14:24:20[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:20[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-17 14:24:20[INFO] - postString:nonce=123456&timestamp=1566023060&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-17 14:24:20[INFO] - sign:86596B0B6D9AE4A16FC5116D72E58132 [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-17 14:24:20[INFO] - postString:nonce=123456&sign=86596B0B6D9AE4A16FC5116D72E58132&timestamp=1566023060&username=zhangyang [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-17 14:24:21[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"9atpp128d6bdiou8feadfgkn10","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-17 14:24:21[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"9atpp128d6bdiou8feadfgkn10","version_type":"1"}} [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-17 14:24:21[INFO] - login success! [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-17 14:24:21[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:21[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-17 14:24:21[INFO] - Opened database successfully [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-17 14:24:21[INFO] - save params success [d:\work\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zhipuzi_pay_plugin.exe


BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zpzDll.dll


+ 262 - 0
zhipuzi_pay_plugin/helper/CBitmapHelper.cpp

@@ -0,0 +1,262 @@
+#include "CBitmapHelper.h"
+
+#include "../pch/pch.h"
+
+CBitmapHelper::CBitmapHelper()
+{
+}
+
+
+CBitmapHelper::~CBitmapHelper()
+{
+}
+
+int CBitmapHelper::SaveBitmapToFile(HBITMAP  hBitmap, LPCWSTR  lpFileName)   //hBitmap   为刚才的屏幕位图句柄
+{
+    //lpFileName   为位图文件名
+    WORD   wBitCount;   //位图中每个像素所占字节数
+
+    //定义调色板大小,位图中像素字节大小,位图文件大小,写入文件字节数
+    DWORD   dwPaletteSize = 0, dwBmBitsSize, dwDIBSize, dwWritten;
+    BITMAP   Bitmap; //位图属性结构
+    BITMAPFILEHEADER   bmfHdr;   //位图文件头结构
+    BITMAPINFOHEADER   bi;   //位图信息头结构
+    HANDLE   fh;   //定义文件,分配内存句柄,调色板句柄
+    LPSTR   lpbk, lpmem;
+
+    wBitCount = 32;
+    //设置位图信息头结构
+    GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&Bitmap);
+    bi.biSize = sizeof(BITMAPINFOHEADER);
+    bi.biWidth = Bitmap.bmWidth;
+    bi.biHeight = Bitmap.bmHeight; //为负,正向的位图;为正,倒向的位图
+    bi.biPlanes = 1;
+    bi.biBitCount = wBitCount;
+    bi.biCompression = BI_RGB;
+    bi.biSizeImage = 0;
+    bi.biXPelsPerMeter = 0;
+    bi.biYPelsPerMeter = 0;
+    bi.biClrUsed = 0;
+    bi.biClrImportant = 0;
+    dwBmBitsSize = ((Bitmap.bmWidth * wBitCount + 31) / 32) * 4 * Bitmap.bmHeight;
+
+    //创建位图文件
+    fh = CreateFile(lpFileName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
+                    FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, NULL);
+    if(fh == INVALID_HANDLE_VALUE)
+    {
+        return   FALSE;
+    }
+
+    //设置位图文件头
+    bmfHdr.bfType = 0x4D42;   //   "BM"
+    dwDIBSize = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + dwBmBitsSize;
+    bmfHdr.bfSize = dwDIBSize;
+    bmfHdr.bfReserved1 = 0;
+    bmfHdr.bfReserved2 = 0;
+    bmfHdr.bfOffBits = (DWORD)sizeof(BITMAPFILEHEADER) + (DWORD)sizeof(BITMAPINFOHEADER);
+
+    //写入位图文件头
+    WriteFile(fh, (LPSTR)&bmfHdr, sizeof(BITMAPFILEHEADER), &dwWritten, NULL);
+
+    //写入位图信息头
+    WriteFile(fh, (LPSTR)&bi, sizeof(BITMAPINFOHEADER), &dwWritten, NULL);
+
+    //获取位图阵列
+    lpmem = new   char[dwBmBitsSize];
+    lpbk = (LPSTR)   new   char[dwBmBitsSize];
+    GetBitmapBits(hBitmap, dwBmBitsSize, lpmem);//正向的内存图象数据
+
+    //转化为倒向数据(仅在bmHeight为正时需要)
+    for(int i = 0; i < Bitmap.bmHeight; i++)
+    {
+        memcpy(lpbk + Bitmap.bmWidth * i * 4, lpmem + Bitmap.bmWidth * (Bitmap.bmHeight - i - 1) * 4, Bitmap.bmWidth * 4);
+    }
+
+    //写位图数据
+    WriteFile(fh, lpbk, dwBmBitsSize, &dwWritten, NULL);
+
+    //清除
+    delete[]lpbk;
+    delete[]lpmem;
+
+    CloseHandle(fh);
+    return   TRUE;
+
+}
+
+HBITMAP CBitmapHelper::CopyScreenToBitmap(LPRECT lpRect)   //lpRect   代表选定区域
+{
+    HDC   hScrDC, hMemDC; //屏幕和内存设备描述表
+    HBITMAP   hBitmap, hOldBitmap;//位图句柄
+    int   nX, nY, nX2, nY2; //选定区域坐标
+    int   nWidth, nHeight; //位图宽度和高度
+    int   xScrn, yScrn; //屏幕宽度和高度
+
+    //确保选定区域不为空矩形
+    if(IsRectEmpty(lpRect))
+    {
+        return   NULL;
+    }
+
+    //为屏幕创建设备描述表
+    hScrDC = CreateDC(L"DISPLAY", NULL, NULL, NULL);
+
+    //为屏幕设备描述表创建兼容的内存设备描述表
+    hMemDC = CreateCompatibleDC(hScrDC);   //或者::CreateCompatibleDC(NULL)
+
+    //获得选定区域坐标
+    nX = lpRect->left;
+    nY = lpRect->top;
+    nX2 = lpRect->right;
+    nY2 = lpRect->bottom;
+
+    //获得屏幕宽度和高度
+    xScrn = GetDeviceCaps(hScrDC, HORZRES);
+    yScrn = GetDeviceCaps(hScrDC, VERTRES);
+
+    //确保选定区域是可见的
+    if(nX < 0)
+    {
+        nX = 0;
+    }
+    if(nY < 0)
+    {
+        nY = 0;
+    }
+    if(nX2 > xScrn)
+    {
+        nX2 = xScrn;
+    }
+    if(nY2 > yScrn)
+    {
+        nY2 = yScrn;
+    }
+
+    nWidth = nX2 - nX;
+    nHeight = nY2 - nY;
+
+    //创建一个与屏幕设备描述表兼容的位图
+    hBitmap = CreateCompatibleBitmap(hScrDC, nWidth, nHeight);
+
+    //把新位图选到内存设备描述表中
+    hOldBitmap = (HBITMAP)SelectObject(hMemDC, hBitmap);
+
+    //把屏幕设备描述表拷贝到内存设备描述表中
+    BitBlt(hMemDC, 0, 0, nWidth, nHeight, hScrDC, nX, nY, SRCCOPY);
+
+    //得到屏幕位图的句柄
+    hBitmap = (HBITMAP)SelectObject(hMemDC, hOldBitmap);
+
+    //清除
+    DeleteDC(hScrDC);
+    DeleteDC(hMemDC);
+
+    return   hBitmap;   //返回位图句柄
+}
+
+bool CBitmapHelper::OcrRect(LPRECT lpRect, std::string& result)
+{
+    HDC   hScrDC, hMemDC; //屏幕和内存设备描述表
+    HBITMAP   hBitmap, hOldBitmap;//位图句柄
+    int   nX, nY, nX2, nY2; //选定区域坐标
+    int   nWidth, nHeight; //位图宽度和高度
+    int   xScrn, yScrn; //屏幕宽度和高度
+
+    //确保选定区域不为空矩形
+    if(IsRectEmpty(lpRect))
+    {
+        return  false;
+    }
+
+    //为屏幕创建设备描述表
+    hScrDC = CreateDC(L"DISPLAY", NULL, NULL, NULL);
+
+    //为屏幕设备描述表创建兼容的内存设备描述表
+    hMemDC = CreateCompatibleDC(hScrDC);   //或者::CreateCompatibleDC(NULL)
+
+    //获得选定区域坐标
+    nX = lpRect->left;
+    nY = lpRect->top;
+    nX2 = lpRect->right;
+    nY2 = lpRect->bottom;
+
+    //获得屏幕宽度和高度
+    xScrn = GetDeviceCaps(hScrDC, HORZRES);
+    yScrn = GetDeviceCaps(hScrDC, VERTRES);
+
+    //确保选定区域是可见的
+    if(nX < 0)
+    {
+        nX = 0;
+    }
+    if(nY < 0)
+    {
+        nY = 0;
+    }
+    if(nX2 > xScrn)
+    {
+        nX2 = xScrn;
+    }
+    if(nY2 > yScrn)
+    {
+        nY2 = yScrn;
+    }
+
+    nWidth = nX2 - nX;
+    nHeight = nY2 - nY;
+
+    //创建一个与屏幕设备描述表兼容的位图
+    hBitmap = CreateCompatibleBitmap(hScrDC, nWidth, nHeight);
+
+    //把新位图选到内存设备描述表中
+    hOldBitmap = (HBITMAP)SelectObject(hMemDC, hBitmap);
+
+    BITMAP bm;
+    GetObject(hBitmap, sizeof(BITMAP), &bm);
+
+    BITMAPINFOHEADER bi = { 0 };
+    bi.biSize = sizeof(BITMAPINFOHEADER);
+    bi.biWidth = bm.bmWidth;
+    bi.biHeight = bm.bmHeight;
+    bi.biPlanes = bm.bmPlanes;
+    bi.biBitCount = bm.bmBitsPixel;
+    bi.biCompression = BI_RGB;
+    bi.biSizeImage = bm.bmHeight * bm.bmWidthBytes;
+
+    //把屏幕设备描述表拷贝到内存设备描述表中
+    BitBlt(hMemDC, 0, 0, nWidth, nHeight, hScrDC, nX, nY, SRCCOPY);
+
+	char* lpmem = new   char[bi.biSizeImage];
+
+	//正向的内存图象数据
+	GetBitmapBits(hBitmap, bi.biSizeImage, lpmem);
+
+    //清除
+    DeleteDC(hScrDC);
+    DeleteDC(hMemDC);
+
+    //开始测试ocr
+    tesseract::TessBaseAPI tess;
+
+    if(tess.Init("./tessdata", "eng"))
+    {
+        std::cout << "OCRTesseract: Could not initialize tesseract." << std::endl;
+        return false;
+    }
+
+    // setup
+    tess.SetPageSegMode(tesseract::PageSegMode::PSM_SINGLE_LINE);
+    tess.SetVariable("save_best_choices", "T");
+
+    tess.SetImage((const unsigned char*)lpmem, bm.bmWidth, bm.bmHeight, 4, bm.bmWidthBytes);
+
+    tess.Recognize(0);
+
+    result = tess.GetUTF8Text();
+
+    delete[] lpmem;
+    tess.Clear();
+
+    return true;
+}

+ 17 - 0
zhipuzi_pay_plugin/helper/CBitmapHelper.h

@@ -0,0 +1,17 @@
+#pragma once
+
+#include "../pch/pch.h"
+
+class CBitmapHelper
+{
+public:
+	CBitmapHelper();
+	~CBitmapHelper();
+
+	int SaveBitmapToFile(HBITMAP  hBitmap, LPCWSTR  lpFileName);
+
+	HBITMAP CopyScreenToBitmap(LPRECT  lpRect);
+
+	bool OcrRect(LPRECT lpRect, std::string& result);
+};
+

+ 18 - 2
zhipuzi_pay_plugin/wnd/COcrWnd.cpp

@@ -1,8 +1,11 @@
 #include "../pch/pch.h"
 #include "COcrWnd.h"
 
-COcrWnd::COcrWnd()
+#include "CValueWnd.h"
+
+COcrWnd::COcrWnd(CValueWnd* value)
 {
+	m_valueWnd = value;
 }
 
 
@@ -224,7 +227,8 @@ LRESULT COcrWnd::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
 		break;
 
 	case WM_NCLBUTTONDBLCLK:
-		return 0;
+		lRes = OnNcButtonDBClick(uMsg, wParam, lParam, bHandled);
+		break;
 
 	default:
 		bHandled = FALSE;
@@ -247,3 +251,15 @@ LRESULT COcrWnd::MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& b
 {
 	return false;
 }
+
+LRESULT COcrWnd::OnNcButtonDBClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+{
+	RECT rect;
+	GetWindowRect(m_hWnd, &rect);
+
+	//截图完成了,那么开始进行后面的OCR处理
+	m_valueWnd->ConfirmOcrWnd(rect);
+
+	bHandled = true;
+	return 0;
+}

+ 7 - 1
zhipuzi_pay_plugin/wnd/COcrWnd.h

@@ -1,9 +1,11 @@
 #pragma once
 
+class CValueWnd;
+
 class COcrWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
 {
 public:
-	COcrWnd();
+	COcrWnd(CValueWnd* value);
 	~COcrWnd();
 
 	LPCTSTR GetWindowClassName() const
@@ -42,11 +44,15 @@ public:
 
 	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
 
+	LRESULT OnNcButtonDBClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
+
 	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
 
 	LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
 
 public:
 	CPaintManagerUI m_pm;
+
+	CValueWnd* m_valueWnd;
 };
 

+ 26 - 0
zhipuzi_pay_plugin/wnd/CSystemSettingWnd.cpp

@@ -6,6 +6,8 @@
 
 #include "CValueWnd.h"
 
+#include "../helper/CBitmapHelper.h"
+
 void CSystemSettingWnd::Init()
 {
 	::SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
@@ -630,3 +632,27 @@ void CSystemSettingWnd::SetDingweiWnd(std::wstring value, HWND hWnd)
 	//找到定位的窗口的位置信息
 	FindDingweiWnd(m_DingweiWnd);
 }
+
+void CSystemSettingWnd::SetOcrWnd(RECT rect)
+{
+	m_ocrRect = rect;
+
+	if (IsRectEmpty(&rect))
+	{
+		return;
+	}
+
+	//开始识别
+	CBitmapHelper helper;
+	
+	HBITMAP h_bitmap = helper.CopyScreenToBitmap(&m_ocrRect);
+	helper.SaveBitmapToFile(h_bitmap, L"C:\\Users\\zhangyang\\Desktop\\aa.bmp");
+
+	std::string result;
+	
+	bool ret = helper.OcrRect(&m_ocrRect, result);
+	if (ret == true)
+	{
+		int a = 1;
+	}
+}

+ 4 - 0
zhipuzi_pay_plugin/wnd/CSystemSettingWnd.h

@@ -75,6 +75,8 @@ public:
 
 	void SetDingweiWnd(std::wstring value, HWND hWnd);
 
+	void SetOcrWnd(RECT rect);
+
 private:
 	void FindValueWnd(std::wstring value);
 
@@ -88,5 +90,7 @@ private:
 	int m_nType = 1;
 
 	HWND m_DingweiWnd = NULL;
+
+	RECT m_ocrRect;
 };
 

+ 13 - 36
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -40,7 +40,7 @@ void CValueWnd::Init()
 	pDingweiInfoWnd->ShowWindow(false);
 
 	//Ocr窗口初始化
-	pOcrWnd = new COcrWnd();
+	pOcrWnd = new COcrWnd(this);
 	pOcrWnd->Create(NULL, _T("智铺子收银插件OCR定位"), UI_WNDSTYLE_FRAME, WS_EX_TOOLWINDOW , 0, 0, 0, 0, NULL);
 	pOcrWnd->ShowWindow(false);
 
@@ -49,41 +49,6 @@ void CValueWnd::Init()
 
     //开始启动监听
     RestartWatch();
-
-    /*
-        std::thread(&CValueWnd::WatchWnd, this).detach();
-
-        //开始测试ocr
-        tesseract::TessBaseAPI tess;
-
-        if(tess.Init("./tessdata", "eng"))
-        {
-            std::cout << "OCRTesseract: Could not initialize tesseract." << std::endl;
-            return ;
-        }
-
-        // setup
-        tess.SetPageSegMode(tesseract::PageSegMode::PSM_AUTO);
-        tess.SetVariable("save_best_choices", "T");
-
-        // read image
-        auto pixs = pixRead("D:\\3.png");
-        if(!pixs)
-        {
-            std::cout << "Cannot open input file: " << "D:\1.png" << std::endl;
-            return ;
-        }
-
-        // recognize
-        tess.SetImage(pixs);
-        tess.Recognize(0);
-
-        // get result and delete[] returned char* string
-        std::string aaa = tess.GetUTF8Text();
-
-        // cleanup
-        tess.Clear();
-        pixDestroy(&pixs);*/
 }
 
 void CValueWnd::RestartWatch()
@@ -850,4 +815,16 @@ void CValueWnd::StartOcrWnd()
 	//先默认居中
 	::SetWindowPos(pOcrWnd->GetHWND(), HWND_TOPMOST, 0, 0, 320, 80, SWP_NOMOVE | SWP_NOACTIVATE);
 	pOcrWnd->CenterWindow();
+}
+
+void CValueWnd::ConfirmOcrWnd(RECT rect)
+{
+	m_is_orc_wnd = false;
+	pOcrWnd->ShowWindow(false);
+
+	//保存截屏的结果
+	m_settingWnd->SetOcrWnd(rect);
+
+	//显示设置窗口
+	m_settingWnd->ShowWindow(true);
 }

+ 1 - 0
zhipuzi_pay_plugin/wnd/CValueWnd.h

@@ -83,6 +83,7 @@ public:
 	void StartDingweiWork();
 
 	void StartOcrWnd();
+	void ConfirmOcrWnd(RECT rect);
 private:
 	void UpdateKexian(const char* data, int length);
 

+ 2 - 0
zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj

@@ -220,6 +220,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
+    <ClInclude Include="helper\CBitmapHelper.h" />
     <ClInclude Include="wnd\COcrWnd.h" />
     <ClInclude Include="wnd\CDingweiInfoWnd.h" />
     <ClInclude Include="wnd\CDingweiWnd.h" />
@@ -260,6 +261,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     <ClInclude Include="control\OrderListUI.h" />
   </ItemGroup>
   <ItemGroup>
+    <ClCompile Include="helper\CBitmapHelper.cpp" />
     <ClCompile Include="wnd\COcrWnd.cpp" />
     <ClCompile Include="wnd\CDingweiInfoWnd.cpp" />
     <ClCompile Include="wnd\CDingweiWnd.cpp" />

+ 6 - 0
zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj.filters

@@ -129,6 +129,9 @@
     <ClInclude Include="wnd\COcrWnd.h">
       <Filter>头文件</Filter>
     </ClInclude>
+    <ClInclude Include="helper\CBitmapHelper.h">
+      <Filter>头文件</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="pch\pch.cpp">
@@ -236,6 +239,9 @@
     <ClCompile Include="wnd\COcrWnd.cpp">
       <Filter>源文件</Filter>
     </ClCompile>
+    <ClCompile Include="helper\CBitmapHelper.cpp">
+      <Filter>源文件</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <Image Include="resource\zhipuzi.ico">